From 4fc4a2166aa2d2b83bcdc81b39b7d67c323bcdf6 Mon Sep 17 00:00:00 2001 From: Chang Chen Date: Fri, 13 Dec 2024 09:16:40 +0800 Subject: [PATCH] Fix build due to https://github.com/ClickHouse/ClickHouse/pull/71095 --- .../local-engine/Storages/MergeTree/SparkMergeTreeMeta.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }