XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Query Planning
    • Labels:

      Description

      Currently HIVE doesn't allow correlated EXISTS/NOT EXISTS subqueries which has aggregate without group by e.g.

       select *
      from src b 
      where exists 
        (select count(*) 
        from src a 
        where b.value = a.value  and a.key = b.key and a.value > 'val_9'
        ) ;
      

      Such queries could be rewritten to replace EXISTS/NOT EXISTS predicate with true or false based on aggregate.

        Attachments

          Activity

            People

            • Assignee:
              vgarg Vineet Garg
              Reporter:
              vgarg Vineet Garg
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: