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

Mac Yang updated HIVE-1862:
---------------------------

    Attachment: HIVE-1862.1.patch.txt

Datanucleus 2.0.3 does not support the get() method on Collection, which the
partition filtering code depends on in order to retrieve the value for a
particular partition and use it for filtering.

The submitted patch is a quick work around. It uses the substring() function
to extract the partition value out of the partitionName field, and thus
eliminates the need of the get() method.

However, this approach does not work if the partition value contains special
characters. This is because the partitionName has the special characters
escaped. Hence the partition value generated using the substring() approach is
also in the escaped form. Here is the list of special characters for reference
purpose, '"', '#', '%', '\'', '*', '/', ':', '=', '?', '\\', '\u007F', '{',
']'

While this solution is incomplete, I am hoping this submission will trigger 
more 
suggestions and ideas.

> Revive partition filtering in the Hive MetaStore
> ------------------------------------------------
>
>                 Key: HIVE-1862
>                 URL: https://issues.apache.org/jira/browse/HIVE-1862
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.7.0
>            Reporter: Devaraj Das
>             Fix For: 0.7.0
>
>         Attachments: HIVE-1862.1.patch.txt
>
>
> HIVE-1853 downgraded the JDO version. This makes the feature of partition 
> filtering in the metastore unusable. This jira is to keep track of the lost 
> feature and discussing approaches to bring it back.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to