hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pengcheng Xiong (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-13618) Trailing spaces in partition column will be treated differently
Date Fri, 06 May 2016 00:32:12 GMT

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

Pengcheng Xiong commented on HIVE-13618:
----------------------------------------

[~ashutoshc], there is no direct sql for this method. The most similar one is "getPartitionsByFilter"

> Trailing spaces in partition column will be treated differently
> ---------------------------------------------------------------
>
>                 Key: HIVE-13618
>                 URL: https://issues.apache.org/jira/browse/HIVE-13618
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Pengcheng Xiong
>            Assignee: Pengcheng Xiong
>         Attachments: HIVE-13618.01.patch
>
>
> We store the partition spec value in the metastore. In mysql (and derby i think), the
trailing space is ignored. That is, if you have a partition column "col" (type varchar or
string) with value "a " and then select from the table where col = "a", it will return. However,
in postgres and Oracle, the trailing space is not ignored. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message