mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
Change default kusto query to get 10 rows (#1077)
* Query to get 10 rows for Kusto queries * fix unit tests * Addressed comments Co-authored-by: Monica Gupta <mogupt@microsoft.com>
This commit is contained in:
@@ -22,7 +22,7 @@ namespace Microsoft.Kusto.ServiceLayer.Scripting
|
||||
// TODOKusto: Extract into the Kusto folder.
|
||||
selectQuery.Append($"{KustoQueryUtils.EscapeName(urn.GetAttribute("Name"))}");
|
||||
selectQuery.Append($"{KustoQueryUtils.StatementSeparator}");
|
||||
selectQuery.Append("limit 1000");
|
||||
selectQuery.Append("take 10");
|
||||
|
||||
return selectQuery.ToString();
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace Microsoft.Kusto.ServiceLayer.UnitTests.Scripting
|
||||
var scripter = new Scripter();
|
||||
var result = scripter.SelectFromTableOrView(mockDataSource.Object, urn);
|
||||
|
||||
Assert.AreEqual("[@\"quoted'Name\"]\n | limit 1000", result);
|
||||
Assert.AreEqual("[@\"quoted'Name\"]\n | take 10", result);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
Reference in New Issue
Block a user