Skip to content

Commit

Permalink
[GLUTEN-1632][CH]Daily Update Clickhouse Version (20241213) (#8224)
Browse files Browse the repository at this point in the history
* [GLUTEN-1632][CH]Daily Update Clickhouse Version (20241213)

* Fix build due to ClickHouse/ClickHouse#71095

---------

Co-authored-by: kyligence-git <[email protected]>
Co-authored-by: Chang Chen <[email protected]>
  • Loading branch information
3 people authored Dec 13, 2024
1 parent 67b6831 commit 96170bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cpp-ch/clickhouse.version
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CH_ORG=Kyligence
CH_BRANCH=rebase_ch/20241212
CH_COMMIT=4ee47b57d8a
CH_BRANCH=rebase_ch/20241213
CH_COMMIT=8539932ca13
6 changes: 3 additions & 3 deletions cpp-ch/local-engine/Storages/MergeTree/SparkMergeTreeMeta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<ASTExpressionList>();
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<ExpressionActions>(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;
}

Expand Down

0 comments on commit 96170bf

Please sign in to comment.