Skip to content

Commit 1933d50

Browse files
idear1203Dongwei Wang
andauthored
[Synapse] - Upgrade artifacts to 1.0.0-preview.9 (#15003)
* Upgrade artifacts to 1.0.0-preview.9 * Upgrade change log Co-authored-by: Dongwei Wang <[email protected]>
1 parent 18c424d commit 1933d50

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

src/Synapse/Synapse/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
Upgraded Azure.Analytics.Synapse.Artifacts to 1.0.0-preview.9
2122

2223
## Version 0.11.0
2324
* Removed principaltype in Synapse Role-based access control

src/Synapse/Synapse/Commands/DataPlaneCommands/Artifact/PipelineRuns/InvokeAzureSynapsePipeline.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
using System.Collections.Generic;
1010
using System.Linq;
1111
using System.Management.Automation;
12-
using JsonConvert = Newtonsoft.Json.JsonConvert;
12+
using System.Text.Json;
1313

1414
namespace Microsoft.Azure.Commands.Synapse
1515
{
@@ -119,7 +119,7 @@ private Dictionary<string, object> ReadParametersFromJson()
119119
string rawJsonContent = SynapseAnalyticsClient.ReadJsonFileContent(this.TryResolvePath(ParameterFile));
120120
if (!string.IsNullOrWhiteSpace(rawJsonContent))
121121
{
122-
parameters = JsonConvert.DeserializeObject<Dictionary<string, object>>(rawJsonContent);
122+
parameters = JsonSerializer.Deserialize<Dictionary<string, object>>(rawJsonContent);
123123
}
124124
return parameters;
125125
}

src/Synapse/Synapse/Common/Utils.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ public static Response<T> Poll<T>(this Operation<T> operation)
199199
return operation.WaitForCompletionAsync().Result;
200200
}
201201

202+
public static Response Poll(this Operation operation)
203+
{
204+
return operation.WaitForCompletionResponseAsync().Result;
205+
}
206+
202207
public static string GetItemTypeString(this WorkspaceItemType itemType)
203208
{
204209
string itemTypeString = null;

src/Synapse/Synapse/Synapse.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<PackageReference Include="Microsoft.Azure.Management.Synapse" Version="1.0.0-preview.5" />
1515
<PackageReference Include="Azure.Analytics.Synapse.Spark" Version="1.0.0-beta.1" />
1616
<PackageReference Include="Azure.Analytics.Synapse.AccessControl" Version="1.0.0-preview.3" />
17-
<PackageReference Include="Azure.Analytics.Synapse.Artifacts" Version="1.0.0-beta.1" />
17+
<PackageReference Include="Azure.Analytics.Synapse.Artifacts" Version="1.0.0-preview.9" />
1818
</ItemGroup>
1919

2020
<ItemGroup>

0 commit comments

Comments
 (0)