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

minimize execution for (sub)queries which are guaranteed to return no results

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.5.0
    • None
    • Query Processor

    Description

      Examples would be a predicate like

      WHERE 1=0

      or

      WHERE ds='2010-01-01'

      if the table is partitioned on ds and no partition exists for that date.

      Per HIVE-838, we have to be careful with the relational algebra analysis; operators like union, outer join, and full-table aggregation can cause rows to be produced even when one of the inputs is guaranteed to be completely filtered out.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jvs John Sichi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: