Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion KustoSchemaTools/Parser/KustoDatabaseHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public async Task<Database> LoadAsync()
var database = new Database();
foreach (var plugin in Plugins)
{
plugin.Load(database, DatabaseName, client);
await plugin.Load(database, DatabaseName, client);

}
return database;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace KustoSchemaTools.Parser.KustoLoader
public class KustoMaterializedViewBulkLoader : KustoBulkEntityLoader<MaterializedView>
{
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\")))";
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)";
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)";

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

Expand Down