You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve reloptions validation for partitioned tables using non-default AMs
Previously, when creating a partitioned table without an explicit
`USING` clause, the reloptions (such as minmax_columns) were validated
with the assumption that the default_table_access_method is either
'heap', 'ao_row', or 'ao_column'. This could incorrectly reject valid
reloptions intended for other table access methods like 'pax'.
This patch adjusts the validation logic in DefineRelation() so that
reloptions are only validated for partitioned tables if the default
AM is one of the known AMs that support reloptions validation. For
non-default AMs, reloptions are passed unvalidated to allow extensions
to handle them properly.
This change enables successful creation of partitioned tables using
`USING pax WITH (minmax_columns=...)` without validation errors, even
when `default_table_access_method` is set to 'pax'.
partition by range(c1) (start(1) end(15000) every(5000))
95
+
with (minmax_columns='c1,c2,c3,c4,c5,c6,c7,c8,c9');
96
+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'c1' as the Apache Cloudberry data distribution key for this table.
97
+
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
partition by range(c1) (start(1) end(15000) every(5000))
101
+
using pax with (minmax_columns='c1,c2,c3,c4,c5,c6,c7,c8,c9');
102
+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'c1' as the Apache Cloudberry data distribution key for this table.
103
+
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
partition by range(c1) (start(1) end(15000) every(5000))
108
+
with (minmax_columns='c1,c2,c3,c4,c5,c6,c7,c8,c9');
109
+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'c1' as the Apache Cloudberry data distribution key for this table.
110
+
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
0 commit comments