@@ -46,91 +46,6 @@ pub(crate) static ONE_MINUTE_MS: i64 = 60_000;
4646pub ( crate ) static EMPTY_SNAPSHOT_ID : i64 = -1 ;
4747pub ( crate ) static INITIAL_SEQUENCE_NUMBER : i64 = 0 ;
4848
49- /// Reserved table property for table format version.
50- ///
51- /// Iceberg will default a new table's format version to the latest stable and recommended
52- /// version. This reserved property keyword allows users to override the Iceberg format version of
53- /// the table metadata.
54- ///
55- /// If this table property exists when creating a table, the table will use the specified format
56- /// version. If a table updates this property, it will try to upgrade to the specified format
57- /// version.
58- pub const PROPERTY_FORMAT_VERSION : & str = "format-version" ;
59- /// Reserved table property for table UUID.
60- pub const PROPERTY_UUID : & str = "uuid" ;
61- /// Reserved table property for the total number of snapshots.
62- pub const PROPERTY_SNAPSHOT_COUNT : & str = "snapshot-count" ;
63- /// Reserved table property for current snapshot summary.
64- pub const PROPERTY_CURRENT_SNAPSHOT_SUMMARY : & str = "current-snapshot-summary" ;
65- /// Reserved table property for current snapshot id.
66- pub const PROPERTY_CURRENT_SNAPSHOT_ID : & str = "current-snapshot-id" ;
67- /// Reserved table property for current snapshot timestamp.
68- pub const PROPERTY_CURRENT_SNAPSHOT_TIMESTAMP : & str = "current-snapshot-timestamp-ms" ;
69- /// Reserved table property for the JSON representation of current schema.
70- pub const PROPERTY_CURRENT_SCHEMA : & str = "current-schema" ;
71- /// Reserved table property for the JSON representation of current(default) partition spec.
72- pub const PROPERTY_DEFAULT_PARTITION_SPEC : & str = "default-partition-spec" ;
73- /// Reserved table property for the JSON representation of current(default) sort order.
74- pub const PROPERTY_DEFAULT_SORT_ORDER : & str = "default-sort-order" ;
75-
76- /// Property key for max number of previous versions to keep.
77- pub const PROPERTY_METADATA_PREVIOUS_VERSIONS_MAX : & str = "write.metadata.previous-versions-max" ;
78- /// Default value for max number of previous versions to keep.
79- pub const PROPERTY_METADATA_PREVIOUS_VERSIONS_MAX_DEFAULT : usize = 100 ;
80-
81- /// Property key for max number of partitions to keep summary stats for.
82- pub const PROPERTY_WRITE_PARTITION_SUMMARY_LIMIT : & str = "write.summary.partition-limit" ;
83- /// Default value for the max number of partitions to keep summary stats for.
84- pub const PROPERTY_WRITE_PARTITION_SUMMARY_LIMIT_DEFAULT : u64 = 0 ;
85-
86- /// Reserved Iceberg table properties list.
87- ///
88- /// Reserved table properties are only used to control behaviors when creating or updating a
89- /// table. The value of these properties are not persisted as a part of the table metadata.
90- pub const RESERVED_PROPERTIES : [ & str ; 9 ] = [
91- PROPERTY_FORMAT_VERSION ,
92- PROPERTY_UUID ,
93- PROPERTY_SNAPSHOT_COUNT ,
94- PROPERTY_CURRENT_SNAPSHOT_ID ,
95- PROPERTY_CURRENT_SNAPSHOT_SUMMARY ,
96- PROPERTY_CURRENT_SNAPSHOT_TIMESTAMP ,
97- PROPERTY_CURRENT_SCHEMA ,
98- PROPERTY_DEFAULT_PARTITION_SPEC ,
99- PROPERTY_DEFAULT_SORT_ORDER ,
100- ] ;
101-
102- /// Property key for number of commit retries.
103- pub const PROPERTY_COMMIT_NUM_RETRIES : & str = "commit.retry.num-retries" ;
104- /// Default value for number of commit retries.
105- pub const PROPERTY_COMMIT_NUM_RETRIES_DEFAULT : usize = 4 ;
106-
107- /// Property key for minimum wait time (ms) between retries.
108- pub const PROPERTY_COMMIT_MIN_RETRY_WAIT_MS : & str = "commit.retry.min-wait-ms" ;
109- /// Default value for minimum wait time (ms) between retries.
110- pub const PROPERTY_COMMIT_MIN_RETRY_WAIT_MS_DEFAULT : u64 = 100 ;
111-
112- /// Property key for maximum wait time (ms) between retries.
113- pub const PROPERTY_COMMIT_MAX_RETRY_WAIT_MS : & str = "commit.retry.max-wait-ms" ;
114- /// Default value for maximum wait time (ms) between retries.
115- pub const PROPERTY_COMMIT_MAX_RETRY_WAIT_MS_DEFAULT : u64 = 60 * 1000 ; // 1 minute
116-
117- /// Property key for total maximum retry time (ms).
118- pub const PROPERTY_COMMIT_TOTAL_RETRY_TIME_MS : & str = "commit.retry.total-timeout-ms" ;
119- /// Default value for total maximum retry time (ms).
120- pub const PROPERTY_COMMIT_TOTAL_RETRY_TIME_MS_DEFAULT : u64 = 30 * 60 * 1000 ; // 30 minutes
121-
122- /// Default file format for data files
123- pub const PROPERTY_DEFAULT_FILE_FORMAT : & str = "write.format.default" ;
124- /// Default file format for delete files
125- pub const PROPERTY_DELETE_DEFAULT_FILE_FORMAT : & str = "write.delete.format.default" ;
126- /// Default value for data file format
127- pub const PROPERTY_DEFAULT_FILE_FORMAT_DEFAULT : & str = "parquet" ;
128-
129- /// Target file size for newly written files.
130- pub const PROPERTY_WRITE_TARGET_FILE_SIZE_BYTES : & str = "write.target-file-size-bytes" ;
131- /// Default target file size
132- pub const PROPERTY_WRITE_TARGET_FILE_SIZE_BYTES_DEFAULT : usize = 512 * 1024 * 1024 ; // 512 MB
133-
13449/// Reference to [`TableMetadata`].
13550pub type TableMetadataRef = Arc < TableMetadata > ;
13651
0 commit comments