Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-18891

I am trying to write a basic query in hive and it is giving me error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.2.1
    • None
    • None
    • None

    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

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            amitchauhan1203 Amit Chauhan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: