hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harish Butani (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HIVE-4293) Predicates following UDTF operator are removed by PPD
Date Tue, 04 Mar 2014 22:17:55 GMT

    [ https://issues.apache.org/jira/browse/HIVE-4293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13920107#comment-13920107
] 

Harish Butani edited comment on HIVE-4293 at 3/4/14 10:17 PM:
--------------------------------------------------------------

[~navis] this looks good
+1
attaching an updated patch, since the last one is couple of months old.
- Had to resolve minor conflicts in SemAly.
- Regenned .q.out files.
- Also added the testcase from HIVE-5964

Please take a look; hope you don't mind that I uploaded an updated patch.



was (Author: rhbutani):
[~navis] this looks good
+1
attaching an updated patch, since the last one is couple of months old.
Also added the testcase from HIVE-5964

Please take a look; hope you don't mind that I uploaded an updated patch.

> Predicates following UDTF operator are removed by PPD
> -----------------------------------------------------
>
>                 Key: HIVE-4293
>                 URL: https://issues.apache.org/jira/browse/HIVE-4293
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Critical
>         Attachments: D9933.6.patch, HIVE-4293.10.patch, HIVE-4293.7.patch.txt, HIVE-4293.8.patch.txt,
HIVE-4293.9.patch.txt, HIVE-4293.D9933.1.patch, HIVE-4293.D9933.2.patch, HIVE-4293.D9933.3.patch,
HIVE-4293.D9933.4.patch, HIVE-4293.D9933.5.patch
>
>
> For example, 
> {noformat}
> explain SELECT value from (
>   select explode(array(key, value)) as (value) from (
>     select * FROM src WHERE key > 200
>   ) A
> ) B WHERE value > 300
> ;
> {noformat}
> Makes plan like this, removing last predicates
> {noformat}
>   TableScan
>     alias: src
>     Filter Operator
>       predicate:
>           expr: (key > 200.0)
>           type: boolean
>       Select Operator
>         expressions:
>               expr: array(key,value)
>               type: array<string>
>         outputColumnNames: _col0
>         UDTF Operator
>           function name: explode
>           Select Operator
>             expressions:
>                   expr: col
>                   type: string
>             outputColumnNames: _col0
>             File Output Operator
>               compressed: false
>               GlobalTableId: 0
>               table:
>                   input format: org.apache.hadoop.mapred.TextInputFormat
>                   output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message