-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Merge policy is being always triggered for execution by delta-kusto even if there is no change. Maybe the option Lookback.Kind is messing a bit, because sometimes it's being read as text, sometimes as number. For example Lookback.Kind = “All” or 2.
Status on database:
.show table BEO_TagDataProcessed policy merge
"PolicyName": ExtentsMergePolicy,
"EntityName": [MyDB].[MyTable],
"Policy": {
"RowCountUpperBoundForMerge": 16000000,
"OriginalSizeMBUpperBoundForMerge": 30000,
"MaxExtentsToMerge": 100,
"MaxRangeInHours": 168,
"AllowRebuild": true,
"AllowMerge": true,
"Lookback": {
"Kind": "All",
"CustomPeriod": null
},
"Origin": "Admin"
},
"ChildEntities": ,
"EntityType": Table,
"EffectivePolicy": {
"RowCountUpperBoundForMerge": 16000000,
"OriginalSizeMBUpperBoundForMerge": 30000,
"MaxExtentsToMerge": 100,
"MaxRangeInHours": 168,
"AllowRebuild": true,
"AllowMerge": true,
"Lookback": {
"Kind": "All",
"CustomPeriod": null
},
"Origin": "Admin"
}Result by .show database schema as csl script:
"DatabaseSchemaScript": .alter table MyTable policy merge @'{"RowCountUpperBoundForMerge":16000000,"OriginalSizeMBUpperBoundForMerge":30000,"MaxExtentsToMerge":100,"MaxRangeInHours":168,"AllowRebuild":true,"AllowMerge":true,"Lookback":{"Kind":2,"CustomPeriod":null},"Origin":1}'My script:
.alter table MyTable policy merge
```{
"RowCountUpperBoundForMerge": 16000000,
"OriginalSizeMBUpperBoundForMerge": 30000,
"MaxExtentsToMerge": 100,
"LoopPeriod": "01:00:00",
"MaxRangeInHours": 168,
"AllowRebuild": true,
"AllowMerge": true,
"Lookback": {
"Kind": "All",
"CustomPeriod": null
}
}```I also tried with, but the result is the same:
.alter table BEO_TagDataProcessed policy merge
```{
"RowCountUpperBoundForMerge": 16000000,
"OriginalSizeMBUpperBoundForMerge": 30000,
"MaxExtentsToMerge": 100,
"LoopPeriod": "01:00:00",
"MaxRangeInHours": 168,
"AllowRebuild": true,
"AllowMerge": true,
"Lookback": {
"Kind": 2,
"CustomPeriod": null
}
}```Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels