Skip to content

Commit

Permalink
Fixes after few comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ianton-ru committed Jan 14, 2025
1 parent 44ed61f commit 8b6064f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Interpreters/ClusterProxy/executeQuery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ void executeQuery(
not_optimized_cluster->getName());

read_from_remote->setStepDescription("Read from remote replica");
read_from_remote->setRemoteFunction(is_remote_function);
read_from_remote->setIsRemoteFunction(is_remote_function);
plan->addStep(std::move(read_from_remote));
plan->addInterpreterContext(new_context);
plans.emplace_back(std::move(plan));
Expand Down
2 changes: 1 addition & 1 deletion src/Processors/QueryPlan/ReadFromRemote.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ReadFromRemote final : public ISourceStep

void enableMemoryBoundMerging();
void enforceAggregationInOrder();
void setRemoteFunction(bool is_remote_function_ = true) { is_remote_function = is_remote_function_; }
void setIsRemoteFunction(bool is_remote_function_ = true) { is_remote_function = is_remote_function_; }

private:
ClusterProxy::SelectStreamFactory::Shards shards;
Expand Down
8 changes: 8 additions & 0 deletions tests/integration/test_storage_iceberg/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,14 @@ def add_df(mode):
)
assert len(cluster_secondary_queries) == 1

select_remote_cluster = (
instance.query(f"SELECT * FROM remote('node2',{table_function_expr_cluster})")
.strip()
.split()
)
assert len(select_remote_cluster) == 600
assert select_remote_cluster == select_regular


@pytest.mark.parametrize("format_version", ["1", "2"])
@pytest.mark.parametrize("storage_type", ["s3", "azure", "hdfs", "local"])
Expand Down

0 comments on commit 8b6064f

Please sign in to comment.