You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Amit Chauhan (JIRA)" <ji...@apache.org> on 2018/03/07 06:54:00 UTC
[jira] [Updated] (HIVE-18891) I am trying to write a basic query
in hive and it is giving me error
[ https://issues.apache.org/jira/browse/HIVE-18891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amit Chauhan updated HIVE-18891:
--------------------------------
Description:
Query :
explain select * from Table1 WHERE COALESCE(Col1, 'abc') in ( SELect col2 FROM Table2) or col2 LIKE 'abc';
FAILED: SemanticException [Error 10249]: Line 1:97 Unsupported SubQuery Expression ''abc'': Only SubQuery expressions that are top level conjuncts are allowed.
if i am running query in standalone like the 2 ways mentioned below they are running:
hive> explain select * from Table1 WHERE COALESCE(Col1, 'abc') in ( SELect col2 FROM Table2)
OK
hive> explain select * from Table1 WHERE col2 LIKE 'abc';
OK
can you please help why the query with both conditions is not running.
hiver version is :
hive> !hive --version;
Hive 1.2.1000.2.5.6.0-40
was:
Query :
explain select * from CCRS_PRDSTG_TBLS.CCRS_SALESREP_ACTS WHERE COALESCE(SLS_PRSN_ID_NEW, 'abc') in ( SELect SLS_PRSN_ID FROM UDM_PRD_ITVM.SALES_PERSON) or SLS_PRSN_ID_NEW LIKE 'abc';
FAILED: SemanticException [Error 10249]: Line 1:97 Unsupported SubQuery Expression ''abc'': Only SubQuery expressions that are top level conjuncts are allowed.
if i am running query in standalone like the 2 ways mentioned below they are running:
hive> explain select * from CCRS_PRDSTG_TBLS.CCRS_SALESREP_ACTS WHERE COALESCE(SLS_PRSN_ID_NEW, 'abc') in ( SELect SLS_PRSN_ID FROM UDM_PRD_ITVM.SALES_PERSON) ;
OK
hive> explain select * from CCRS_PRDSTG_TBLS.CCRS_SALESREP_ACTS a WHERE a.SLS_PRSN_ID_NEW LIKE 'abc' ;
OK
can you please help why the query with both conditions is not running.
hiver version is :
hive> !hive --version;
Hive 1.2.1000.2.5.6.0-40
> I am trying to write a basic query in hive and it is giving me error
> ---------------------------------------------------------------------
>
> Key: HIVE-18891
> URL: https://issues.apache.org/jira/browse/HIVE-18891
> Project: Hive
> Issue Type: Bug
> Affects Versions: 1.2.1
> Reporter: Amit Chauhan
> Priority: Trivial
>
> Query :
> explain select * from Table1 WHERE COALESCE(Col1, 'abc') in ( SELect col2 FROM Table2) or col2 LIKE 'abc';
> FAILED: SemanticException [Error 10249]: Line 1:97 Unsupported SubQuery Expression ''abc'': Only SubQuery expressions that are top level conjuncts are allowed.
>
> if i am running query in standalone like the 2 ways mentioned below they are running:
> hive> explain select * from Table1 WHERE COALESCE(Col1, 'abc') in ( SELect col2 FROM Table2)
> OK
> hive> explain select * from Table1 WHERE col2 LIKE 'abc';
> OK
> can you please help why the query with both conditions is not running.
>
> hiver version is :
> hive> !hive --version;
> Hive 1.2.1000.2.5.6.0-40
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)