From 6e07907f626d4824f27e395217955a1e011c464f Mon Sep 17 00:00:00 2001 From: vplauzon Date: Thu, 19 Oct 2023 17:07:16 -0400 Subject: [PATCH] . --- .../Policies/AlterIngestionTimePolicyCommand.cs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/code/DeltaKustoLib/CommandModel/Policies/AlterIngestionTimePolicyCommand.cs b/code/DeltaKustoLib/CommandModel/Policies/AlterIngestionTimePolicyCommand.cs index d7a63a9..1090559 100644 --- a/code/DeltaKustoLib/CommandModel/Policies/AlterIngestionTimePolicyCommand.cs +++ b/code/DeltaKustoLib/CommandModel/Policies/AlterIngestionTimePolicyCommand.cs @@ -30,19 +30,9 @@ public AlterIngestionTimePolicyCommand(EntityName tableName, bool isEnabled) internal static CommandBase FromCode(SyntaxElement rootElement) { var tableName = rootElement.GetDescendants().Last(); - var policyText = QuotedText.FromLiteral( - rootElement.GetUniqueDescendant( - "AutoDeletePolicy", - e => e.NameInParent == "AutoDeletePolicy")); - var policy = Deserialize(policyText.Text); - if (policy == null) - { - throw new DeltaException( - $"Can't extract policy objects from {policyText.ToScript()}"); - } - - return new AlterIngestionTimePolicyCommand(EntityName.FromCode(tableName.Name), policy); + throw new NotImplementedException(); + //return new AlterIngestionTimePolicyCommand(EntityName.FromCode(tableName.Name), policy); } public override string ToScript(ScriptingContext? context)