From a5e7ff51c8af3781e7f6dd3b82a3fc922e2f6f93 Mon Sep 17 00:00:00 2001 From: kevinzz6 <632604666@qq.com> Date: Wed, 9 Aug 2023 04:35:51 +0800 Subject: [PATCH] Synapse change sessionId type from int to string (#25210) * change sessionId type from int to string * modify related code --- .../2022-03-01-preview/examples/RunNotebook_Cancel.json | 4 ++-- .../2022-03-01-preview/examples/RunNotebook_Create.json | 2 +- .../examples/RunNotebook_GetSnapshot.json | 2 +- .../examples/RunNotebook_GetStatus.json | 2 +- .../preview/2022-03-01-preview/runNotebook.json | 9 +++------ 5 files changed, 8 insertions(+), 11 deletions(-) diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2022-03-01-preview/examples/RunNotebook_Cancel.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2022-03-01-preview/examples/RunNotebook_Cancel.json index 54f5e55cb817..37e7ce18aec8 100644 --- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2022-03-01-preview/examples/RunNotebook_Cancel.json +++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2022-03-01-preview/examples/RunNotebook_Cancel.json @@ -18,7 +18,7 @@ "result": { "runId": "4b200abf-c90c-43cf-98ae-b9f2bcf90373", "runStatus": "Cancelled", - "sessionId": -1, + "sessionId": "-1", "sparkPool": "exampleSparkpool", "lastCheckedOn": "0001-01-01T00:00:00" } @@ -37,7 +37,7 @@ "result": { "runId": "4b200abf-c90c-43cf-98ae-b9f2bcf90373", "runStatus": "SnapshotTaken", - "sessionId": -1, + "sessionId": "-1", "sparkPool": "exampleSparkpool" } } diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2022-03-01-preview/examples/RunNotebook_Create.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2022-03-01-preview/examples/RunNotebook_Create.json index 0e726f89dbad..c4c1837e6702 100644 --- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2022-03-01-preview/examples/RunNotebook_Create.json +++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2022-03-01-preview/examples/RunNotebook_Create.json @@ -39,7 +39,7 @@ "result": { "runId": "4b200abf-c90c-43cf-98ae-b9f2bcf90373", "runStatus": "Starting", - "sessionId": -1, + "sessionId": "-1", "sparkPool": "exampleSparkpool", "lastCheckedOn": "0001-01-01T00:00:00" } diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2022-03-01-preview/examples/RunNotebook_GetSnapshot.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2022-03-01-preview/examples/RunNotebook_GetSnapshot.json index 1a29f7504318..1046e5b665d1 100644 --- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2022-03-01-preview/examples/RunNotebook_GetSnapshot.json +++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2022-03-01-preview/examples/RunNotebook_GetSnapshot.json @@ -232,7 +232,7 @@ }, "runId": "e4221395-55ae-4c6d-9756-fae966d84350", "runStatus": "Succeeded", - "sessionId": 1, + "sessionId": "1", "sparkPool": "exampleSparkpool", "lastCheckedOn": "0001-01-01T00:00:00" } diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2022-03-01-preview/examples/RunNotebook_GetStatus.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2022-03-01-preview/examples/RunNotebook_GetStatus.json index c9c6b451ad20..e39ee653b03a 100644 --- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2022-03-01-preview/examples/RunNotebook_GetStatus.json +++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2022-03-01-preview/examples/RunNotebook_GetStatus.json @@ -82,7 +82,7 @@ "exitValue": null, "runId": "4b200abf-c90c-43cf-98ae-b9f2bcf90373", "runStatus": "Starting", - "sessionId": 2, + "sessionId": "2", "sparkPool": "exampleSparkpool", "lastCheckedOn": "2021-09-06T11:23:58.3733333" } diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2022-03-01-preview/runNotebook.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2022-03-01-preview/runNotebook.json index 54522f9bce63..4cd70db4b317 100644 --- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2022-03-01-preview/runNotebook.json +++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2022-03-01-preview/runNotebook.json @@ -242,8 +242,7 @@ }, "sessionId": { "description": "Livy session id.", - "type": "integer", - "format": "int64" + "type": "string" }, "sparkPool": { "description": "SparkPool name.", @@ -331,8 +330,7 @@ }, "sessionId": { "description": "Livy session id.", - "type": "integer", - "format": "int64" + "type": "string" }, "sparkPool": { "description": "SparkPool name.", @@ -378,8 +376,7 @@ }, "sessionId": { "description": "Livy session id.", - "type": "integer", - "format": "int64" + "type": "string" }, "sparkPool": { "description": "SparkPool name.",