Skip to content

Commit 6d81309

Browse files
authored
Update KustoMaterializedViewBulkLoader.cs
1 parent efdc13e commit 6d81309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)