diff --git a/cpp-ch/clickhouse.version b/cpp-ch/clickhouse.version index bee7ea2b9592..25365de439cc 100644 --- a/cpp-ch/clickhouse.version +++ b/cpp-ch/clickhouse.version @@ -1,3 +1,3 @@ CH_ORG=Kyligence -CH_BRANCH=rebase_ch/20241212 -CH_COMMIT=4ee47b57d8a +CH_BRANCH=rebase_ch/20241213 +CH_COMMIT=8539932ca13 diff --git a/cpp-ch/local-engine/Storages/MergeTree/SparkMergeTreeMeta.cpp b/cpp-ch/local-engine/Storages/MergeTree/SparkMergeTreeMeta.cpp index 199bd455085d..fae8f3ecef9e 100644 --- a/cpp-ch/local-engine/Storages/MergeTree/SparkMergeTreeMeta.cpp +++ b/cpp-ch/local-engine/Storages/MergeTree/SparkMergeTreeMeta.cpp @@ -115,14 +115,14 @@ doBuildMetadata(const DB::NamesAndTypesList & columns, const ContextPtr & contex setSecondaryIndex(columns, context, table, metadata); metadata->partition_key.expression_list_ast = std::make_shared(); - metadata->sorting_key = KeyDescription::parse(table.order_by_key, metadata->getColumns(), context); + metadata->sorting_key = KeyDescription::parse(table.order_by_key, metadata->getColumns(), context, true); if (table.primary_key.empty()) if (table.order_by_key != MergeTreeTable::TUPLE) - metadata->primary_key = KeyDescription::parse(table.order_by_key, metadata->getColumns(), context); + metadata->primary_key = KeyDescription::parse(table.order_by_key, metadata->getColumns(), context, true); else metadata->primary_key.expression = std::make_shared(ActionsDAG{}); else - metadata->primary_key = KeyDescription::parse(table.primary_key, metadata->getColumns(), context); + metadata->primary_key = KeyDescription::parse(table.primary_key, metadata->getColumns(), context, true); return metadata; }