In explain output, trafodion_index_scan operator description/table_name references base table rather than index.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Trafodion |
In Progress
|
Medium
|
Anoop Sharma |
Bug Description
In "explain options 'f'" output, for trafodion_
>>create table mytbl( a int not null, b int, c int);
--- SQL operation complete.
>>insert into mytbl values (1,1,1), (2,2,2), (3,3,3), (4,4,4), (5,5,5);
--- 5 row(s) inserted.
>>create index myidx on mytbl(b);
--- SQL operation complete.
>>prepare XX from select * from mytbl where b = 3;
--- SQL command prepared.
>>explain options 'f' XX;
LC RC OP OPERATOR OPT DESCRIPTION CARD
---- ---- ---- -------
4 . 5 root 1.00E+001
1 3 4 nested_join 1.00E+001
2 . 3 probe_cache 4.00E-001
. . 2 trafodion_scan MYTBL 4.00E-001
. . 1 trafodion_
--- SQL operation complete.
>>explain XX;
-------
MODULE_NAME .............. DYNAMICALLY COMPILED
STATEMENT_NAME ........... XX
PLAN_ID .................. 212287252940704541
ROWS_OUT ................ 10
EST_TOTAL_COST ........... 0.01
STATEMENT ................ select * from mytbl where b = 3;
-------
ROOT =======
REQUESTS_IN .............. 1
ROWS_OUT ................ 10
EST_OPER_COST ............ 0
EST_TOTAL_COST ........... 0.01
DESCRIPTION
max_card_est .......... 99
fragment_id ............ 0
parent_frag ............ (none)
fragment_type .......... master
statement_index ........ 0
affinity_value ......... 0
est_memory_
max_max_
total_
xn_access_mode ......... read_only
xn_autoabort_
auto_query_retry ....... enabled
plan_version ....... 2,600
embedded_arkcmp ........ used
IS_SQLCI ............... ON
LDAP_USERNAME
SCHEMA ................. JULSCH
SHOWCONTROL_
ObjectUIDs ............. 60853707823455777
select_list ............ TRAFODION.
input_variables ........ %(3), execution_count
NESTED_JOIN =======
REQUESTS_IN .............. 1
ROWS_OUT ................ 10
EST_OPER_COST ............ 0.01
EST_TOTAL_COST ........... 0.01
DESCRIPTION
max_card_est .......... 99
fragment_id ............ 0
parent_frag ............ (none)
fragment_type .......... master
join_type .............. inner
join_method ............ nested
PROBE_CACHE =======
REQUESTS_IN .............. 1
ROWS_OUT ................. 0.4
EST_OPER_COST ............ 0
EST_TOTAL_COST ........... 0.01
DESCRIPTION
max_card_est .......... 90
fragment_id ............ 0
parent_frag ............ (none)
fragment_type .......... master
est_memory_
probe_columns .......... TRAFODION.
num_cache_entries 16,384
num_inner_tuples 18,432
TRAFODION_SCAN =======
TABLE_NAME ............... MYTBL
REQUESTS_IN .............. 1
ROWS_OUT ................. 0.4
EST_OPER_COST ............ 0.01
EST_TOTAL_COST ........... 0.01
DESCRIPTION
max_card_est .......... 90
fragment_id ............ 0
parent_frag ............ (none)
fragment_type .......... master
scan_type .............. subset scan of table TRAFODION.
object_type ............ Trafodion
cache_size ........... 100
probes ................ 10
successful_probes ..... 10
unique_probes .......... 2
duplicated_
rows_accessed ......... 10
key_columns ............ SYSKEY
executor_
begin_key .............. (SYSKEY = TRAFODION.
end_key ................ (SYSKEY = TRAFODION.
TRAFODION_
TABLE_NAME ............... MYTBL
REQUESTS_IN .............. 1
ROWS_OUT ................ 10
EST_OPER_COST ............ 0.01
EST_TOTAL_COST ........... 0.01
DESCRIPTION
max_card_est .......... 99
fragment_id ............ 0
parent_frag ............ (none)
fragment_type .......... master
scan_type .............. subset scan of index TRAFODION.
object_type ............ Trafodion
cache_size ........... 100
probes ................. 1
rows_accessed ......... 10
key_columns ............ TRAFODION.
executor_
begin_key .............. (TRAFODION.
end_key ................ (TRAFODION.
--- SQL operation complete.
To reproduce:
create table mytbl( a int not null, b int, c int);
insert into mytbl values (1,1,1), (2,2,2), (3,3,3), (4,4,4), (5,5,5);
create index myidx on mytbl(b);
prepare XX from select * from mytbl where b = 3;
explain options 'f' XX;
explain XX;
This reproduced on:
MY_SQROOT=
who@host=
JAVA_HOME=
linux=2.
redhat=6.5
Release 0.9.1 (Build release [0.9.0-
description: | updated |
description: | updated |
Changed in trafodion: | |
assignee: | nobody → Anoop Sharma (anoop-sharma) |
Changed in trafodion: | |
status: | New → In Progress |