You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Hans Zeller (JIRA)" <ji...@apache.org> on 2018/03/26 17:04:00 UTC
[jira] [Closed] (TRAFODION-1753) Certain salted tables have the
wrong HASH2 partitioning function
[ https://issues.apache.org/jira/browse/TRAFODION-1753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hans Zeller closed TRAFODION-1753.
----------------------------------
> Certain salted tables have the wrong HASH2 partitioning function
> ----------------------------------------------------------------
>
> Key: TRAFODION-1753
> URL: https://issues.apache.org/jira/browse/TRAFODION-1753
> Project: Apache Trafodion
> Issue Type: Bug
> Components: sql-cmp
> Affects Versions: 1.2-incubating
> Environment: Any
> Reporter: Hans Zeller
> Assignee: Hans Zeller
> Priority: Major
> Fix For: 2.0-incubating
>
>
> Yesterday I saw an EXPLAIN for a parallel scan of a salted table, something like this:
> create table tsdiv(a integer not null,
> b integer not null,
> primary key(a,b))
> salt using 4 partitions on (a)
> division by (cast(b/10 as integer not null));
> cqd parallel_num_esps '8';
> control query shape esp_exchange(cut, 6);
> explain select distinct b from tsdiv;
> The table also had more regions than salt buckets (4 in the above case), due to additional region splits. I saw two issues: First, the number of HASH2 partitions was the number of HBase regions, it should be the number of salt buckets. Second, the partitioning key was (a,b), it should be a.
> Here is part of the explain of the ESP_EXCHANGE above the scan:
> child_partitioning_func hash2 partitioned 5 ways on (TRAFODION.SCH.TSDIV.A, TRAFODION.SCH.TSDIV.B)
> I faked the "5" here since I was too lazy to cause a region split in this empty test table, sorry.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)