Skip to content

Commit b8edf16

Browse files
authored
Merge pull request #1 from github/caol-ila-fixes
Small fixes
2 parents 6fdaa9a + 6d81309 commit b8edf16

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

KustoSchemaTools/Parser/KustoDatabaseHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public async Task<Database> LoadAsync()
3131
var database = new Database();
3232
foreach (var plugin in Plugins)
3333
{
34-
plugin.Load(database, DatabaseName, client);
34+
await plugin.Load(database, DatabaseName, client);
3535

3636
}
3737
return database;

KustoSchemaTools/Parser/KustoLoader/KustoMaterializedViewBulkLoader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace KustoSchemaTools.Parser.KustoLoader
55
public class KustoMaterializedViewBulkLoader : KustoBulkEntityLoader<MaterializedView>
66
{
77
const string LoadMaterializedViews = ".show materialized-views details| project EntityName=MaterializedViewName, Body=bag_pack(\"DocString\", DocString, \"Folder\", Folder,\"RetentionAndCachePolicy\",bag_pack(\"Retention\",strcat(toint(totimespan(parse_json(RetentionPolicy).SoftDeletePeriod)/1d),\"d\") , \"HotCache\", strcat(toint(totimespan(parse_json(CachingPolicy).DataHotSpan)/1d),\"d\")))";
8-
const string LoadDetails = ".show materialized-views | extend Lookback = strcat(toint(Lookback / 1d),\"d\") | extend Lookback = iff(Lookback == 'd', \"\", Lookback) | project EnitityName=Name, Body=bag_pack_columns(Source= SourceTable,Query,IsEnabled, Folder,DocString, AutoUpdateSchema, Lookback)";
8+
const string LoadDetails = ".show materialized-views | extend Lookback = strcat(toint(Lookback / 1d),\"d\") | extend Lookback = iff(Lookback == 'd', \"\", Lookback) | project EntityName=Name, Body=bag_pack_columns(Source= SourceTable,Query,IsEnabled, Folder,DocString, AutoUpdateSchema, Lookback)";
99

1010
public KustoMaterializedViewBulkLoader() : base(d => d.MaterializedViews) { }
1111

0 commit comments

Comments
 (0)