You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Aihua Xu (JIRA)" <ji...@apache.org> on 2017/02/02 18:56:52 UTC

[jira] [Comment Edited] (HIVE-15782) query on parquet table returns incorrect result when hive.optimize.index.filter is set to true

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

Aihua Xu edited comment on HIVE-15782 at 2/2/17 6:56 PM:
---------------------------------------------------------

We will not filter the data when there are nonsupported data types and currently Hive is returning incorrect result. For good ones, we will not have performance impact. I will investigate if we can support decimal, date and timestamp in the following jiras.


was (Author: aihuaxu):
We will not filter the data when there are nonsupported data types and currently Hive is returning incorrect result. I will investigate if we can support decimal, date and timestamp in the following jiras.

> query on parquet table returns incorrect result when hive.optimize.index.filter is set to true 
> -----------------------------------------------------------------------------------------------
>
>                 Key: HIVE-15782
>                 URL: https://issues.apache.org/jira/browse/HIVE-15782
>             Project: Hive
>          Issue Type: Bug
>          Components: File Formats
>    Affects Versions: 2.2.0
>            Reporter: Aihua Xu
>            Assignee: Aihua Xu
>         Attachments: HIVE-15782.1.patch, HIVE-15782.2.patch
>
>
> When hive.optimize.index.filter is set to true, the parquet table is filtered using the parquet column index. 
> {noformat}
> set hive.optimize.index.filter=true;
> CREATE TABLE t1 (
>   name string,
>   dec decimal(5,0)
> ) stored as parquet;
> insert into table t1 values('Jim', 3);
> insert into table t1 values('Tom', 5);
> select * from t1 where (name = 'Jim' or dec = 5);
> {noformat}
> Only one row {{Jim, 3}} is returned, but both should be returned. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)