hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesus Camacho Rodriguez (Jira)" <j...@apache.org>
Subject [jira] [Issue Comment Deleted] (HIVE-23850) Allow PPD when subject is not a column with grouping sets present
Date Fri, 17 Jul 2020 15:13:00 GMT

     [ https://issues.apache.org/jira/browse/HIVE-23850?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jesus Camacho Rodriguez updated HIVE-23850:
-------------------------------------------
    Comment: was deleted

(was: Commit id is https://github.com/apache/hive/commit/44aa72f096639d7b1a52ef18887016af98bd6999
. I missed the JIRA number in the commit message.)

> Allow PPD when subject is not a column with grouping sets present
> -----------------------------------------------------------------
>
>                 Key: HIVE-23850
>                 URL: https://issues.apache.org/jira/browse/HIVE-23850
>             Project: Hive
>          Issue Type: Bug
>          Components: Logical Optimizer
>            Reporter: Zhihua Deng
>            Assignee: Zhihua Deng
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> After [HIVE-19653|https://issues.apache.org/jira/browse/HIVE-19653],  filters with only
columns and constants are pushed down, but in some cases,  this may not work as well, for
example:
> SET hive.cbo.enable=false;
> SELECT a, b, sum(s)
> FROM T1
> GROUP BY a, b GROUPING SETS ((a), (a, b))
> HAVING upper(a) = "AAA" AND sum(s) > 100;
>  
> SELECT upper(a), b, sum(s)
> FROM T1
> GROUP BY upper(a), b GROUPING SETS ((upper(a)), (upper(a), b))
> HAVING upper(a) = "AAA" AND sum(s) > 100;
>  
> The filters pushed down to GBY can be f(gbyKey) or gbyKey with udf ,  not only the column
groupby keys.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message