Skip to content

Commit 57b66b8

Browse files
authored
Merge pull request ClickHouse#79851 from ClickHouse/fix-build-clang-20
Fix build on clang-20
2 parents f5fab77 + 599d0cc commit 57b66b8

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/Interpreters/InsertDependenciesBuilder.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -690,8 +690,9 @@ class ExecutingInnerQueryFromViewTransform final : public ExceptionKeepingTransf
690690
};
691691

692692

693-
InsertDependenciesBuilder::InsertDependenciesBuilder(StoragePtr table, ASTPtr query, Block insert_header,
694-
bool async_insert_, bool skip_destination_table_, bool allow_materialized_,
693+
InsertDependenciesBuilder::InsertDependenciesBuilder(
694+
StoragePtr table, ASTPtr query, Block insert_header,
695+
bool async_insert_, bool skip_destination_table_,
695696
ContextPtr context)
696697
: init_table_id(table->getStorageID())
697698
, init_storage(table)
@@ -700,7 +701,6 @@ InsertDependenciesBuilder::InsertDependenciesBuilder(StoragePtr table, ASTPtr qu
700701
, init_context(context)
701702
, async_insert(async_insert_)
702703
, skip_destination_table(skip_destination_table_)
703-
, allow_materialized(allow_materialized_)
704704
, views_error_registry(std::make_shared<ViewErrorsRegistry>())
705705
, logger(getLogger("InsertDependenciesBuilder"))
706706
{

src/Interpreters/InsertDependenciesBuilder.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class InsertDependenciesBuilder : public std::enable_shared_from_this<InsertDepe
9393
void logQueryView(StorageID view_id, std::exception_ptr exception, bool before_start = false) const;
9494

9595
protected:
96-
InsertDependenciesBuilder(StoragePtr table, ASTPtr query, Block insert_header, bool async_insert_, bool skip_destination_table_, bool allow_materialized_, ContextPtr context);
96+
InsertDependenciesBuilder(StoragePtr table, ASTPtr query, Block insert_header, bool async_insert_, bool skip_destination_table_, ContextPtr context);
9797

9898
private:
9999
bool isView(StorageIDPrivate id) const;
@@ -117,7 +117,6 @@ class InsertDependenciesBuilder : public std::enable_shared_from_this<InsertDepe
117117

118118
bool async_insert = false;
119119
bool skip_destination_table = false;
120-
bool allow_materialized = false;
121120

122121
StorageIDPrivate root_view;
123122

src/Interpreters/InterpreterInsertQuery.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ QueryPipeline InterpreterInsertQuery::addInsertToSelectPipeline(ASTInsertQuery &
450450

451451
auto insert_dependencies = InsertDependenciesBuilder::create(
452452
table, query_ptr, query_sample_block,
453-
async_insert, /*skip_destination_table*/ no_destination, allow_materialized,
453+
async_insert, /*skip_destination_table*/ no_destination,
454454
getContext());
455455

456456
size_t sink_streams_size = table->supportsParallelInsert() ? max_insert_threads : 1;
@@ -632,7 +632,7 @@ QueryPipeline InterpreterInsertQuery::buildInsertPipeline(ASTInsertQuery & query
632632
// they are allowed to expose its virtuals columns to the dependent views
633633
auto insert_dependencies = InsertDependenciesBuilder::create(
634634
table, query_ptr, query_sample_block,
635-
async_insert, /*skip_destination_table*/ no_destination, allow_materialized,
635+
async_insert, /*skip_destination_table*/ no_destination,
636636
getContext());
637637

638638
Chain chain = insert_dependencies->createChainWithDependencies();

0 commit comments

Comments
 (0)