This is an automated email from the ASF dual-hosted git repository.
eldenmoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new a074ea4b703 [fix](table_property) table-property-case for
variantEnableFlattenNested (#54138)
a074ea4b703 is described below
commit a074ea4b7036255fbbd75d4a25eaef74904daa8b
Author: amory <[email protected]>
AuthorDate: Thu Jul 31 23:03:11 2025 +0800
[fix](table_property) table-property-case for variantEnableFlattenNested
(#54138)
---
.../src/main/java/org/apache/doris/datasource/InternalCatalog.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
b/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
index 575024e39c8..c26932d9c58 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
@@ -2606,6 +2606,9 @@ public class InternalCatalog implements
CatalogIf<Database> {
} else if (variantEnableFlattenNested) {
throw new DdlException("If you want to enable variant flatten
nested, "
+ "please set session variable:
disable_variant_flatten_nested = false");
+ } else {
+ // keep table property: variant_enable_flatten_nested = false
+ olapTable.setVariantEnableFlattenNested(false);
}
} catch (AnalysisException e) {
throw new DdlException(e.getMessage());
@@ -3491,6 +3494,9 @@ public class InternalCatalog implements
CatalogIf<Database> {
} else if (variantEnableFlattenNested) {
throw new DdlException("If you want to enable variant flatten
nested, "
+ "please set session variable:
disable_variant_flatten_nested = false");
+ } else {
+ // keep table property: variant_enable_flatten_nested = false
+ olapTable.setVariantEnableFlattenNested(false);
}
} catch (AnalysisException e) {
throw new DdlException(e.getMessage());
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]