Fix for bug 1329965 also fixes this bug.
With 1329965 fix, the plans looks like : TRAFODION_VSBB_SCAN ======================= SEQ_NO 3 NO CHILDREN TABLE_NAME ............... TBL500 REQUESTS_IN ............ 100 ROWS/REQUEST ............. 1 EST_OPER_COST ............ 0.03 EST_TOTAL_COST ........... 0.03 DESCRIPTION max_card_est ......... 100 fragment_id ............ 0 parent_frag ............ (none) fragment_type .......... master scan_type .............. subset scan of table TRAFODION.HBASE.TBL500 key_columns ............ _SALT_, CNT part_key_predicates .... (CNT = (__array3 RowsetArrayScan \:_sys_rowset_index4)) and ("_SALT_" = (HashDistPartHash(cast((__array3 RowsetArrayScan \:_sys_rowset_index4))) Hash2Distrib cast(8))) begin_key .............. (_SALT_ = (HashDistPartHash(cast(cast((cast((__array 3 RowsetArrayScan \:_sys_rowset_index4)) / cast(1000000))))) Hash2Distrib cast(8))), (CNT = (__array3 RowsetArrayScan \:_sys_rowset_index4)) end_key ................ (_SALT_ = (HashDistPartHash(cast((__array3 RowsetArrayScan \:_sys_rowset_index4))) Hash2Distrib cast(8))), (CNT = (__array3 RowsetArrayScan \:_sys_rowset_index4))
Without 1329965 fix, we get: TRAFODION_SCAN ============================ SEQ_NO 3 NO CHILDREN TABLE_NAME ............... TBL500 REQUESTS_IN ............ 100 ROWS/REQUEST ............. 1 EST_OPER_COST ............ 0.2 EST_TOTAL_COST ........... 0.2 DESCRIPTION max_card_est ......... 100 fragment_id ............ 0 parent_frag ............ (none) fragment_type .......... master scan_type .............. subset scan of table TRAFODION.HBASE.TBL500 key_columns ............ _SALT_, CNT executor_predicates .... (cast((cast(CNT) * cast(1000000))) = (__array3 RowsetArrayScan \:_sys_rowset_index4)) part_key_predicates .... (CNT = (__array3 RowsetArrayScan \:_sys_rowset_index4)) begin_key .............. (_SALT_ = <min>), (CNT = (__array3 RowsetArrayScan \:_sys_rowset_index4)) end_key ................ (_SALT_ = <max>), (CNT = (__array3 RowsetArrayScan \:_sys_rowset_index4))
I will close this bug as duplicate of 1329965 .
Fix for bug 1329965 also fixes this bug.
With 1329965 fix, the plans looks like : ======= ======= == SEQ_NO 3 NO CHILDREN HBASE.TBL500 key_predicates .... (CNT = (__array3 RowsetArrayScan
\:_sys_ rowset_ index4) ) and ("_SALT_" =
(HashDistPartH ash(cast( (__array3 RowsetArrayScan
\:_sys_ rowset_ index4) )) Hash2Distrib cast(8))) sh(cast( cast((cast( (__array
3 RowsetArrayScan \:_sys_ rowset_ index4) ) /
cast(1000000) )))) Hash2Distrib cast(8))),
(CNT = (__array3 RowsetArrayScan
\:_sys_ rowset_ index4) ) sh(cast( (__array3
RowsetArraySca n \:_sys_ rowset_ index4) ))
Hash2Distrib cast(8))),
(CNT = (__array3 RowsetArrayScan
\:_sys_ rowset_ index4) )
TRAFODION_VSBB_SCAN =======
TABLE_NAME ............... TBL500
REQUESTS_IN ............ 100
ROWS/REQUEST ............. 1
EST_OPER_COST ............ 0.03
EST_TOTAL_COST ........... 0.03
DESCRIPTION
max_card_est ......... 100
fragment_id ............ 0
parent_frag ............ (none)
fragment_type .......... master
scan_type .............. subset scan of table TRAFODION.
key_columns ............ _SALT_, CNT
part_
begin_key .............. (_SALT_ = (HashDistPartHa
end_key ................ (_SALT_ = (HashDistPartHa
Without 1329965 fix, we get: ======= ======= ======= SEQ_NO 3 NO CHILDREN HBASE.TBL500 predicates .... (cast((cast(CNT) * cast(1000000))) = (__array3
RowsetArraySca n \:_sys_ rowset_ index4) ) key_predicates .... (CNT = (__array3 RowsetArrayScan
\:_sys_ rowset_ index4) )
\:_sys_ rowset_ index4) )
\:_sys_ rowset_ index4) )
TRAFODION_SCAN =======
TABLE_NAME ............... TBL500
REQUESTS_IN ............ 100
ROWS/REQUEST ............. 1
EST_OPER_COST ............ 0.2
EST_TOTAL_COST ........... 0.2
DESCRIPTION
max_card_est ......... 100
fragment_id ............ 0
parent_frag ............ (none)
fragment_type .......... master
scan_type .............. subset scan of table TRAFODION.
key_columns ............ _SALT_, CNT
executor_
part_
begin_key .............. (_SALT_ = <min>), (CNT = (__array3 RowsetArrayScan
end_key ................ (_SALT_ = <max>), (CNT = (__array3 RowsetArrayScan
I will close this bug as duplicate of 1329965 .