[
https://issues.apache.org/jira/browse/IMPALA-15288?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Quanlong Huang resolved IMPALA-15288.
-------------------------------------
Fix Version/s: Impala 5.0.0
Resolution: Fixed
> 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
> Fix For: Impala 5.0.0
>
>
> 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)