Michael Smith created IMPALA-13569:
--------------------------------------

             Summary: Calcite planner: invalid tuple_idx with num_nodes=1
                 Key: IMPALA-13569
                 URL: https://issues.apache.org/jira/browse/IMPALA-13569
             Project: IMPALA
          Issue Type: Bug
            Reporter: Michael Smith


When using single node plans (num_nodes=1) with the Calcite planner on TPC-DS, 
3 queries fail - Q18, Q22, and Q27 - with invalid tuple_idx errors like
{code:java}
E           invalid tuple_idx: Slot(id=127 type=STRING col_path=[] offset=0 
null=(offset=56 mask=1) slot_idx=0 field_idx=0)
E           parent=Tuple(id=11 size=57 table_desc=null slots=[Slot(id=127 
type=STRING col_path=[] offset=0 null=(offset=56 mask=1) slot_idx=0 
field_idx=0), Slot(id=128 type=STRING col_path=[] offset=12 null=(offset=56 
mask=2) slot_idx=1 field_idx=1), Slot(id=129 type=DOUBLE col_path=[] offset=24 
null=(offset=56 mask=4) slot_idx=2 field_idx=2), Slot(id=130 type=DECIMAL(11,6) 
col_path=[] offset=32 null=(offset=56 mask=8) slot_idx=3 field_idx=3), 
Slot(id=131 type=DECIMAL(11,6) col_path=[] offset=40 null=(offset=56 mask=10) 
slot_idx=4 field_idx=4), Slot(id=132 type=DECIMAL(11,6) col_path=[] offset=48 
null=(offset=56 mask=20) slot_idx=5 field_idx=5)] tuple_path=[])
E           row=Tuple(id=10 size=113 table_desc=null slots=[Slot(id=121 
type=STRING col_path=[] offset=88 null=(offset=112 mask=10) slot_idx=4 
field_idx=4), Slot(id=122 type=STRING col_path=[] offset=100 null=(offset=112 
mask=20) slot_idx=5 field_idx=5), Slot(id=123 type=FIXED_UDA_INTERMEDIATE(16) 
col_path=[] offset=72 null=(offset=112 mask=8) slot_idx=3 field_idx=3), 
Slot(id=124 type=FIXED_UDA_INTERMEDIATE(24) col_path=[] offset=0 
null=(offset=112 mask=1) slot_idx=0 field_idx=0), Slot(id=125 
type=FIXED_UDA_INTERMEDIATE(24) col_path=[] offset=24 null=(offset=112 mask=2) 
slot_idx=1 field_idx=1), Slot(id=126 type=FIXED_UDA_INTERMEDIATE(24) 
col_path=[] offset=48 null=(offset=112 mask=4) slot_idx=2 field_idx=2)] 
tuple_path=[])
E           Tuple(id=12 size=113 table_desc=null slots=[Slot(id=133 type=STRING 
col_path=[] offset=88 null=(offset=112 mask=10) slot_idx=4 field_idx=4), 
Slot(id=134 type=STRING col_path=[] offset=100 null=(offset=112 mask=20) 
slot_idx=5 field_idx=5), Slot(id=135 type=FIXED_UDA_INTERMEDIATE(16) 
col_path=[] offset=72 null=(offset=112 mask=8) slot_idx=3 field_idx=3), 
Slot(id=136 type=FIXED_UDA_INTERMEDIATE(24) col_path=[] offset=0 
null=(offset=112 mask=1) slot_idx=0 field_idx=0), Slot(id=137 
type=FIXED_UDA_INTERMEDIATE(24) col_path=[] offset=24 null=(offset=112 mask=2) 
slot_idx=1 field_idx=1), Slot(id=138 type=FIXED_UDA_INTERMEDIATE(24) 
col_path=[] offset=48 null=(offset=112 mask=4) slot_idx=2 field_idx=2)] 
tuple_path=[])
E           Tuple(id=14 size=113 table_desc=null slots=[Slot(id=145 type=STRING 
col_path=[] offset=88 null=(offset=112 mask=10) slot_idx=4 field_idx=4), 
Slot(id=146 type=STRING col_path=[] offset=100 null=(offset=112 mask=20) 
slot_idx=5 field_idx=5), Slot(id=147 type=FIXED_UDA_INTERMEDIATE(16) 
col_path=[] offset=72 null=(offset=112 mask=8) slot_idx=3 field_idx=3), 
Slot(id=148 type=FIXED_UDA_INTERMEDIATE(24) col_path=[] offset=0 
null=(offset=112 mask=1) slot_idx=0 field_idx=0), Slot(id=149 
type=FIXED_UDA_INTERMEDIATE(24) col_path=[] offset=24 null=(offset=112 mask=2) 
slot_idx=1 field_idx=1), Slot(id=150 type=FIXED_UDA_INTERMEDIATE(24) 
col_path=[] offset=48 null=(offset=112 mask=4) slot_idx=2 field_idx=2)] 
tuple_path=[]) {code}
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org

Reply via email to