Skip to content

Commit cc041c9

Browse files
authored
Core: Add data compaction policy schema (#945)
1 parent 6879565 commit cc041c9

File tree

1 file changed

+39
-0
lines changed
  • polaris-core/src/main/resources/schemas/policies/system/data-compaction

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"license": "Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)",
3+
"$id": "https://polaris.apache.org/schemas/policies/system/data-compaction/2025-02-03.json",
4+
"title": "Data Compaction Policy",
5+
"description": "Inheritable Polaris policy schema for Iceberg table data compaction.",
6+
"type": "object",
7+
"properties": {
8+
"version": {
9+
"type": "string",
10+
"const": "2025-02-03",
11+
"description": "Schema version."
12+
},
13+
"enable": {
14+
"type": "boolean",
15+
"description": "Enable or disable data compaction."
16+
},
17+
"config": {
18+
"type": "object",
19+
"description": "A map containing custom configuration properties. Please note that interoperability is not guaranteed.",
20+
"additionalProperties": {
21+
"type": ["string", "number", "boolean"]
22+
}
23+
}
24+
},
25+
"required": ["enable"],
26+
"additionalProperties": false,
27+
"examples": [
28+
{
29+
"version": "2025-02-03",
30+
"enable": true,
31+
"config": {
32+
"target_file_size_bytes": 134217728,
33+
"compaction_strategy": "bin-pack",
34+
"max-concurrent-file-group-rewrites": 5,
35+
"my-key": "my-value"
36+
}
37+
}
38+
]
39+
}

0 commit comments

Comments
 (0)