This is an automated email from the ASF dual-hosted git repository.
yufei pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new cc041c91 Core: Add data compaction policy schema (#945)
cc041c91 is described below
commit cc041c919141eee7effe98c44e334d18cf701767
Author: Yufei Gu <[email protected]>
AuthorDate: Thu Feb 6 11:01:33 2025 -0800
Core: Add data compaction policy schema (#945)
---
.../system/data-compaction/2025-02-03.json | 39 ++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git
a/polaris-core/src/main/resources/schemas/policies/system/data-compaction/2025-02-03.json
b/polaris-core/src/main/resources/schemas/policies/system/data-compaction/2025-02-03.json
new file mode 100644
index 00000000..b452eb80
--- /dev/null
+++
b/polaris-core/src/main/resources/schemas/policies/system/data-compaction/2025-02-03.json
@@ -0,0 +1,39 @@
+{
+ "license": "Licensed under the Apache License, Version 2.0
(http://www.apache.org/licenses/LICENSE-2.0)",
+ "$id":
"https://polaris.apache.org/schemas/policies/system/data-compaction/2025-02-03.json",
+ "title": "Data Compaction Policy",
+ "description": "Inheritable Polaris policy schema for Iceberg table data
compaction.",
+ "type": "object",
+ "properties": {
+ "version": {
+ "type": "string",
+ "const": "2025-02-03",
+ "description": "Schema version."
+ },
+ "enable": {
+ "type": "boolean",
+ "description": "Enable or disable data compaction."
+ },
+ "config": {
+ "type": "object",
+ "description": "A map containing custom configuration properties. Please
note that interoperability is not guaranteed.",
+ "additionalProperties": {
+ "type": ["string", "number", "boolean"]
+ }
+ }
+ },
+ "required": ["enable"],
+ "additionalProperties": false,
+ "examples": [
+ {
+ "version": "2025-02-03",
+ "enable": true,
+ "config": {
+ "target_file_size_bytes": 134217728,
+ "compaction_strategy": "bin-pack",
+ "max-concurrent-file-group-rewrites": 5,
+ "my-key": "my-value"
+ }
+ }
+ ]
+}