[ 
https://issues.apache.org/jira/browse/HIVE-21599?focusedWorklogId=825426&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-825426
 ]

ASF GitHub Bot logged work on HIVE-21599:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 11/Nov/22 18:46
            Start Date: 11/Nov/22 18:46
    Worklog Time Spent: 10m 
      Work Description: asolimando commented on code in PR #3742:
URL: https://github.com/apache/hive/pull/3742#discussion_r1020479800


##########
ql/src/test/queries/clientpositive/parquet_partition_col.q:
##########
@@ -0,0 +1,20 @@
+
+  create external table test(
+      strcol string,
+      intcol integer
+  ) partitioned by (pcol int)
+  stored as parquet
+  location '../../data/files/parquet_partition';
+
+ msck repair table test;
+
+ select * from test;
+
+ explain select * from test where pcol=100 and intcol=2;
+ select * from test where pcol=100 and intcol=2;
+
+ explain select * from test where PCOL=200 and intcol=3;
+ select * from test where PCOL=200 and intcol=3;
+
+ explain select * from test where `pCol`=300 and intcol=5;
+ select * from test where `pCol`=300 and intcol=5;

Review Comment:
   Nit: text files should end with a newline to be well formed





Issue Time Tracking
-------------------

    Worklog Id:     (was: 825426)
    Time Spent: 3h 20m  (was: 3h 10m)

> Parquet predicate pushdown on partition columns may cause wrong result if 
> files contain partition columns
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-21599
>                 URL: https://issues.apache.org/jira/browse/HIVE-21599
>             Project: Hive
>          Issue Type: Improvement
>          Components: Query Planning
>            Reporter: Vineet Garg
>            Assignee: Soumyakanti Das
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HIVE-21599.1.patch
>
>          Time Spent: 3h 20m
>  Remaining Estimate: 0h
>
> Filter predicates are pushed to Table Scan (to be pushed to and used by 
> storage handler/input format). Such predicates could consist of partition 
> columns which are of no use to storage handler  or input formats. Therefore 
> it should be removed from TS filter expression.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to