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

          Carl Steinbach made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          John Sichi made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags [Reviewed]
          Release Note 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.
          Resolution Fixed [ 1 ]
          Amareshwari Sriramadasu made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Amareshwari Sriramadasu made changes -
          Attachment hive-patch-2344-2.txt [ 12490007 ]
          John Sichi made changes -
          Assignee Ido Hadanny [ ihadanny ] Amareshwari Sriramadasu [ amareshwari ]
          John Sichi made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Assignee Amareshwari Sriramadasu [ amareshwari ] Ido Hadanny [ ihadanny ]
          Amareshwari Sriramadasu made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Affects Version/s 0.8.0 [ 12316178 ]
          Fix Version/s 0.8.0 [ 12316178 ]
          Amareshwari Sriramadasu made changes -
          Attachment hive-patch-2344.txt [ 12489828 ]
          Amareshwari Sriramadasu made changes -
          Attachment ppd_udf_col.q.out.txt [ 12489827 ]
          John Sichi made changes -
          Field Original Value New Value
          Link This issue relates to HIVE-1538 [ HIVE-1538 ]
          He Yongqiang created 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