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

filter is removed due to regression of HIVE-1538

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 0.8.0
    • None
    • None
    • Reviewed
    • Hide
      When predicate pushdown is enabled, Hive would previously incorrectly push down predicates on non-deterministic function invocations when those were indirectly referenced via a nested SELECT list rather than directly in the filter expression. After this change, Hive no longer pushes down filters over indirect references to function invocations of any kind (regardless of determinism). Note that in Hive, even builtin operators such as + and CAST are treated as function invocations.
      Show
      When predicate pushdown is enabled, Hive would previously incorrectly push down predicates on non-deterministic function invocations when those were indirectly referenced via a nested SELECT list rather than directly in the filter expression. After this change, Hive no longer pushes down filters over indirect references to function invocations of any kind (regardless of determinism). Note that in Hive, even builtin operators such as + and CAST are treated as function invocations.

    Description

      select * from
      (
      select type_bucket,randum123
      from (SELECT *, cast(rand() as double) AS randum123 FROM tbl where ds = ...) a
      where randum123 <=0.1)s where s.randum123>0.1 limit 20;

      This is returning results...

      and

      explain
      select type_bucket,randum123
      from (SELECT *, cast(rand() as double) AS randum123 FROM tbl where ds = ...) a
      where randum123 <=0.1

      shows that there is no filter.

      Attachments

        1. hive-patch-2344-2.txt
          25 kB
          Amareshwari Sriramadasu
        2. hive-patch-2344.txt
          22 kB
          Amareshwari Sriramadasu
        3. ppd_udf_col.q.out.txt
          14 kB
          Amareshwari Sriramadasu

        Issue Links

          Activity

            People

              amareshwari Amareshwari Sriramadasu
              he yongqiang He Yongqiang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: