Support skip_unused_shards in Analyzer#53282
Merged
KochetovNicolai merged 16 commits intomasterfrom Oct 31, 2023
Merged
Conversation
Contributor
|
This is an automated comment for commit cc3c038 with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page Successful checks
|
6862c20 to
7136c97
Compare
novikd
reviewed
Sep 13, 2023
| } | ||
| } | ||
|
|
||
| /** Storages can rely that filters that for storage will be available for analysis before |
| ColumnPtr tryCastColumn(ColumnPtr col, const DataTypePtr & from_type, const DataTypePtr & to_type) | ||
| { | ||
| auto to_type_no_lc = recursiveRemoveLowCardinality(to_type); | ||
| // std::cerr << ".. casting " << from_type->getName() << " -> " << to_type_no_lc->getName() << std::endl; |
Member
There was a problem hiding this comment.
Suggested change
| // std::cerr << ".. casting " << from_type->getName() << " -> " << to_type_no_lc->getName() << std::endl; |
Comment on lines
+683
to
+684
| // std::cerr << "--- inverted dag\n"; | ||
| // std::cerr << inverted_dag->dumpDAG() << std::endl; |
Member
There was a problem hiding this comment.
Suggested change
| // std::cerr << "--- inverted dag\n"; | |
| // std::cerr << inverted_dag->dumpDAG() << std::endl; |
Comment on lines
+687
to
+692
| // for (const auto & [node, match] : matches) | ||
| // { | ||
| // LOG_TRACE(&Poco::Logger::get("eeocc"), "Match {} {} -> {} {} (with monotonicity : {})", | ||
| // static_cast<const void *>(node), node->result_name, | ||
| // static_cast<const void *>(match.node), (match.node ? match.node->result_name : ""), match.monotonicity != std::nullopt); | ||
| // } |
Member
There was a problem hiding this comment.
Suggested change
| // for (const auto & [node, match] : matches) | |
| // { | |
| // LOG_TRACE(&Poco::Logger::get("eeocc"), "Match {} {} -> {} {} (with monotonicity : {})", | |
| // static_cast<const void *>(node), node->result_name, | |
| // static_cast<const void *>(match.node), (match.node ? match.node->result_name : ""), match.monotonicity != std::nullopt); | |
| // } |
| if (!predicates) | ||
| return {}; | ||
|
|
||
| // std::cerr << "--- num predicates " << predicates->size() << std::endl; |
Member
There was a problem hiding this comment.
Suggested change
| // std::cerr << "--- num predicates " << predicates->size() << std::endl; |
Comment on lines
+533
to
+534
| // std::cerr << query_node.dumpTree() << std::endl; | ||
| // std::cerr << query_info.table_expression->dumpTree() << std::endl; |
Member
There was a problem hiding this comment.
Suggested change
| // std::cerr << query_node.dumpTree() << std::endl; | |
| // std::cerr << query_info.table_expression->dumpTree() << std::endl; |
src/Storages/StorageDistributed.cpp
Outdated
| // GROUP BY | ||
| bool has_aggregates = query_info.has_aggregates; | ||
| if (query_info.syntax_analyzer_result) | ||
| has_aggregates = !query_info.syntax_analyzer_result->aggregates.empty(); |
Member
There was a problem hiding this comment.
strange to see in new infrastructure
src/Storages/StorageDistributed.cpp
Outdated
Comment on lines
+1532
to
+1533
| // for (int i : shards) | ||
| // std::cerr << ".. shard " << i << std::endl; |
Member
There was a problem hiding this comment.
Suggested change
| // for (int i : shards) | |
| // std::cerr << ".. shard " << i << std::endl; |
src/Storages/StorageDistributed.cpp
Outdated
Comment on lines
+1513
to
+1514
| // std::cerr << "--- expr\n"; | ||
| // std::cerr << sharding_key_dag.dumpDAG() << std::endl; |
Member
There was a problem hiding this comment.
Suggested change
| // std::cerr << "--- expr\n"; | |
| // std::cerr << sharding_key_dag.dumpDAG() << std::endl; |
Member
Author
|
test_s3_engine_heavy_write_check_mem is flaky and not fixed yet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):