Kusto control command with comments or spaces (#1074)

Co-authored-by: Monica Gupta <mogupt@microsoft.com>
This commit is contained in:
Monica Gupta
2020-09-12 00:10:48 -07:00
committed by GitHub
parent d39a67df30
commit f25fb3c5d7

View File

@@ -229,6 +229,9 @@ namespace Microsoft.Kusto.ServiceLayer.DataSource
cancellationToken.Register(() => CancelQuery(clientRequestProperties.ClientRequestId));
}
var kustoCodeService = new KustoCodeService(query);
query = kustoCodeService.GetMinimalText(MinimalTextKind.RemoveLeadingWhitespaceAndComments);
IDataReader origReader = KustoQueryProvider.ExecuteQuery(
KustoQueryUtils.IsClusterLevelQuery(query) ? "" : databaseName,
query,