Skip to content

Commit

Permalink
Disable plural on .create tables
Browse files Browse the repository at this point in the history
  • Loading branch information
vplauzon committed Oct 23, 2023
1 parent bef11cb commit e81cacc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions code/DeltaKustoLib/CommandModel/CreateTableCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ public override string ToScript(ScriptingContext? context)
return builder.ToString();
}

IEnumerable<CommandBase>
ISingularToPluralCommand.ToPlural(IEnumerable<CommandBase> singularCommands)
IEnumerable<CommandBase> ISingularToPluralCommand.ToPlural(
IEnumerable<CommandBase> singularCommands)
{
// We might want to cap batches to a maximum size?
var pluralCommands = singularCommands
Expand All @@ -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(
Expand Down

0 comments on commit e81cacc

Please sign in to comment.