Skip to content

Commit

Permalink
fix logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
SuzyWangIBMer committed May 1, 2024
1 parent 2e1a0da commit 61d80c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Analyzer/Passes/UtilizeProjectionPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class UtilizeProjectionVisitor : public InDepthQueryTreeVisitorWithContext<Utili
if (node->getNodeType() == QueryTreeNodeType::QUERY)
{
auto query_node = node->as<QueryNode>();
if (!query_node->hasWhere() && !query_node->getJoinTree())
if (!query_node->hasWhere() || !query_node->getJoinTree())
return;

const auto metadata = getStorageSnapshot(query_node->getJoinTree())->metadata;
Expand Down

0 comments on commit 61d80c1

Please sign in to comment.