From e81cacc101497ca0fd3b4b4e1d02cb9d596ea4b3 Mon Sep 17 00:00:00 2001 From: vplauzon Date: Mon, 23 Oct 2023 16:53:10 -0400 Subject: [PATCH] Disable plural on .create tables --- code/DeltaKustoLib/CommandModel/CreateTableCommand.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/DeltaKustoLib/CommandModel/CreateTableCommand.cs b/code/DeltaKustoLib/CommandModel/CreateTableCommand.cs index 694e049..5d98148 100644 --- a/code/DeltaKustoLib/CommandModel/CreateTableCommand.cs +++ b/code/DeltaKustoLib/CommandModel/CreateTableCommand.cs @@ -108,8 +108,8 @@ public override string ToScript(ScriptingContext? context) return builder.ToString(); } - IEnumerable - ISingularToPluralCommand.ToPlural(IEnumerable singularCommands) + IEnumerable ISingularToPluralCommand.ToPlural( + IEnumerable singularCommands) { // We might want to cap batches to a maximum size? var pluralCommands = singularCommands @@ -123,7 +123,9 @@ public override string ToScript(ScriptingContext? context) g.Key.Folder, g.Key.DocString)); - return pluralCommands.ToImmutableArray(); + // Temporarily disable plural as it doesn't seem to work with folder + + //return pluralCommands.ToImmutableArray(); + return singularCommands; } private static (QuotedText? folder, QuotedText? docString) ExtractProperties(