[ 
https://issues.apache.org/jira/browse/HIVE-28333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Soumyakanti Das updated HIVE-28333:
-----------------------------------
    Description: 
CBO doesn't support TABLESAMPLE, UNIQUEJOIN, and UNIONTYPE.
h3. TABLESAMPLE not supported

fname=archive_excludeHadoop20.q
{code:sql}
SELECT key FROM harbucket TABLESAMPLE(BUCKET 1 OUT OF 10) SORT BY key
{code}
{noformat}
org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSemanticException: Table 
Sample specified for harbucket. Currently we don't support Table Sample clauses 
in CBO, turn off cbo for queries on tableSamples.{noformat}
h3. UNIQUE JOIN not supported

fname=explainuser_2.q
{code:sql}
EXPLAIN FROM UNIQUEJOIN PRESERVE src a_n19 (a_n19.key), PRESERVE src1 b_n15 
(b_n15.key), PRESERVE srcpart c_n4 (c_n4.key) SELECT a_n19.key, b_n15.key, 
c_n4.key 
{code}
{noformat}
org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSemanticException: UNIQUE 
JOIN is currently not supported in CBO, turn off cbo to use UNIQUE 
JOIN.{noformat}

  was:
CBO doesn't support TABLESAMPLE, UNIQUEJOIN, and UNIONTYPE.
h3. TABLESAMPLE not supported

fname=archive_excludeHadoop20.q
{code:sql}
SELECT key FROM harbucket TABLESAMPLE(BUCKET 1 OUT OF 10) SORT BY key
{code}
{noformat}
org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSemanticException: Table 
Sample specified for harbucket. Currently we don't support Table Sample clauses 
in CBO, turn off cbo for queries on tableSamples.{noformat}
h3. UNIQUE JOIN not supported

fname=explainuser_2.q
{code:sql}
EXPLAIN FROM UNIQUEJOIN PRESERVE src a_n19 (a_n19.key), PRESERVE src1 b_n15 
(b_n15.key), PRESERVE srcpart c_n4 (c_n4.key) SELECT a_n19.key, b_n15.key, 
c_n4.key 
{code}
{noformat}
org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSemanticException: UNIQUE 
JOIN is currently not supported in CBO, turn off cbo to use UNIQUE 
JOIN.{noformat}
h3. Union type not supported

fname=annotate_stats_select.q
{code:sql}
explain select CREATE_UNION(0, "hello") from alltypes_orc
{code}
{noformat}
org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSemanticException: Union 
type is not supported{noformat}


> Skip CBO for UNIQUEJOIN and TABLESAMPLE
> ---------------------------------------
>
>                 Key: HIVE-28333
>                 URL: https://issues.apache.org/jira/browse/HIVE-28333
>             Project: Hive
>          Issue Type: Sub-task
>          Components: CBO
>            Reporter: Soumyakanti Das
>            Assignee: Soumyakanti Das
>            Priority: Major
>              Labels: pull-request-available
>
> CBO doesn't support TABLESAMPLE, UNIQUEJOIN, and UNIONTYPE.
> h3. TABLESAMPLE not supported
> fname=archive_excludeHadoop20.q
> {code:sql}
> SELECT key FROM harbucket TABLESAMPLE(BUCKET 1 OUT OF 10) SORT BY key
> {code}
> {noformat}
> org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSemanticException: Table 
> Sample specified for harbucket. Currently we don't support Table Sample 
> clauses in CBO, turn off cbo for queries on tableSamples.{noformat}
> h3. UNIQUE JOIN not supported
> fname=explainuser_2.q
> {code:sql}
> EXPLAIN FROM UNIQUEJOIN PRESERVE src a_n19 (a_n19.key), PRESERVE src1 b_n15 
> (b_n15.key), PRESERVE srcpart c_n4 (c_n4.key) SELECT a_n19.key, b_n15.key, 
> c_n4.key 
> {code}
> {noformat}
> org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSemanticException: UNIQUE 
> JOIN is currently not supported in CBO, turn off cbo to use UNIQUE 
> JOIN.{noformat}



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

Reply via email to