Hive
  1. Hive
  2. HIVE-2344

filter is removed due to regression of HIVE-1538

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.8.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      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.

      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

          No work has yet been logged on this issue.

            People

            • Assignee:
              Amareshwari Sriramadasu
              Reporter:
              He Yongqiang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development