[
https://issues.apache.org/jira/browse/IMPALA-15288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18107784#comment-18107784
]
ASF subversion and git services commented on IMPALA-15288:
----------------------------------------------------------
Commit 2157bc8278dd9db8dcb7dc77d982919a9d61f4b0 in impala's branch
refs/heads/master from stiga-huang
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=2157bc827 ]
IMPALA-15288: Fix test_const_only_union on calcite-planner
For const-only query "select 1 union select 2", Calcite doesn't generate
an AggregationNode over the UnionNode, which causes the test fails.
This modifies the test to add a section for the Calcite plan.
Testing
- Ran test_hbo.py locally with calcite-planner enabled.
Change-Id: I48398cd7897142ff25cb54a5205c941fabbd1c37
Reviewed-on: http://gerrit.cloudera.org:8080/24730
Reviewed-by: Steve Carlin <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
> test_const_only_union fails when using calcite-planner
> ------------------------------------------------------
>
> Key: IMPALA-15288
> URL: https://issues.apache.org/jira/browse/IMPALA-15288
> Project: IMPALA
> Issue Type: Bug
> Components: Test
> Reporter: Quanlong Huang
> Assignee: Quanlong Huang
> Priority: Major
>
> TestHBO.test_const_only_union fails when using calcite-planner
> {noformat}
> tests/query_test/test_hbo.py:291: in test_const_only_union
> self._run_hbo_explains('QueryTest/hbo-union-consts')
> self = <test_hbo.TestHBO object at 0x71a72f1e6090>
> tests/query_test/test_hbo.py:67: in _run_hbo_explains
> assert actual_cardinality_lines == expected_cardinality_lines, (
> E AssertionError: EXPLAIN output mismatch for QueryTest/hbo-union-consts.
> E Expected:
> E PLAN-ROOT SINK
> E |
> E 01:AGGREGATE [FINALIZE]
> E | group by: 1
> E | row-size=1B cardinality=2 (from HBO)
> E |
> E 00:UNION
> E constant-operands=2
> E row-size=1B cardinality=2
> E
> E
> E Actual:
> E PLAN-ROOT SINK
> E |
> E 00:UNION
> E constant-operands=2
> E row-size=1B cardinality=2
> E assert [' row-size...ardinality=2'] == ['| row-size...ardinality=2']
> E At index 0 diff: ' row-size=1B cardinality=2' != '| row-size=1B
> cardinality=2 (from HBO)'
> E Right contains one more item: ' row-size=1B cardinality=2'
> E Full diff:
> E - ['| row-size=1B cardinality=2 (from HBO)', ' row-size=1B
> cardinality=2']
> E + [' row-size=1B cardinality=2']{noformat}
> The query is
> {code:sql}
> select 1 union select 2{code}
> Calcite doesn't generate the AggregationNode.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]