Skip to content

Commit

Permalink
Revert KustoLangurage package to avoid regression in range operator
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilMacMullen committed May 6, 2024
1 parent 06cd735 commit 1f304bc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Directory.Packages.Props
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<PackageVersion Include="xunit" Version="2.8.0" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.0" />
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
<PackageVersion Include="Microsoft.Azure.Kusto.Language" Version="11.5.3" />
<PackageVersion Include="Microsoft.Azure.Kusto.Language" Version="11.5.2" />
<PackageVersion Include="System.Linq.Async" Version="6.0.1" />
<PackageVersion Include="System.Text.Json" Version="8.0.3" />
<PackageVersion Include="CsvHelper" Version="32.0.1" />
Expand Down
8 changes: 4 additions & 4 deletions libraries/KustoLoco.Core/KustoQueryResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ public static IReadOnlyCollection<T> ToRecords<T>(IEnumerable<OrderedDictionary>
{
return JsonSerializer.Deserialize<T[]>(json)!;
}
catch
{
return [];
catch
{
return [];
}
}

Expand Down Expand Up @@ -208,4 +208,4 @@ public DataTable ToDataTable(int maxRows=Int32.MaxValue)
dt.Rows.Add(row);
return dt;
}
}
}
4 changes: 2 additions & 2 deletions samples/csvrepl/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
return;
}

var context = new KustoQueryContext();
context.AddTable(result.Table);
var context = new KustoQueryContext()
.AddTable(result.Table);

while (true)
{
Expand Down
6 changes: 4 additions & 2 deletions samples/processes/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

var processes = ProcessReader.GetProcesses();
var query = args.First();
var result = KustoQueryContext.QueryRecords(processes, query);
var context = new KustoQueryContext();
context.WrapDataIntoTable("processes", processes);
var result = await context.RunQuery(query);

DisplayQueryResult(result);

Expand Down Expand Up @@ -68,4 +70,4 @@ This program demonstrates the use of KQL to query the current process list.
""";
AnsiConsole.MarkupLineInterpolated($"[yellow]{help}[/]");
Environment.Exit(0);
}
}

0 comments on commit 1f304bc

Please sign in to comment.