You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Diksha (Jira)" <ji...@apache.org> on 2023/09/27 15:38:00 UTC

[jira] [Assigned] (HIVE-27683) Incorrect result when filtering the table with default partition

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

Diksha reassigned HIVE-27683:
-----------------------------

    Assignee: Diksha

> Incorrect result when filtering the table with default partition
> ----------------------------------------------------------------
>
>                 Key: HIVE-27683
>                 URL: https://issues.apache.org/jira/browse/HIVE-27683
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Zhihua Deng
>            Assignee: Diksha
>            Priority: Major
>
> Steps to repro:
> {noformat}
> create database pt;
> create table pt.alterdynamic_part_table(intcol string) partitioned by (partcol1 int, partcol2 int);
> insert into table pt.alterdynamic_part_table partition(partcol1, partcol2) select '2', 2, NULL;
> select intcol from pt.alterdynamic_part_table where (partcol1=2 and partcol2=1) or (partcol1=2 and partcol2='__HIVE_DEFAULT_PARTITION__');
> select intcol from pt.alterdynamic_part_table where partcol2='__HIVE_DEFAULT_PARTITION__';{noformat}
> The last two queries should return one line row instead of an empty result.



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