Github user zuyu commented on a diff in the pull request:

    https://github.com/apache/incubator-quickstep/pull/229#discussion_r110303143
  
    --- Diff: query_optimizer/resolver/Resolver.cpp ---
    @@ -372,23 +373,23 @@ L::LogicalPtr Resolver::resolve(const ParseStatement 
&parse_query) {
           }
           break;
         }
    -    case ParseStatement::kSelect: {
    -      const ParseStatementSelect &select_statement =
    -          static_cast<const ParseStatementSelect&>(parse_query);
    -      if (select_statement.with_clause() != nullptr) {
    -        resolveWithClause(*select_statement.with_clause());
    +    case ParseStatement::kSetOperation: {
    +      const ParseStatementSetOperation &set_operation_statement =
    +          static_cast<const ParseStatementSetOperation&>(parse_query);
    +      if (set_operation_statement.with_clause() != nullptr) {
    +        resolveWithClause(*set_operation_statement.with_clause());
           }
           logical_plan_ =
    -          resolveSelect(*select_statement.select_query(),
    -                        "" /* select_name */,
    -                        nullptr /* No Type hints */,
    -                        nullptr /* parent_resolver */);
    -      if (select_statement.with_clause() != nullptr) {
    +          
resolveSetOperationDispatcher(*set_operation_statement.set_operation_query(),
    +                              "", /* set operation name */
    +                              nullptr /* type hints */,
    +                              nullptr /* parent resolver*/);
    --- End diff --
    
    Reset the changes regarding `parent_resolver`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to