You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Daniel Dai (JIRA)" <ji...@apache.org> on 2017/05/10 23:52:04 UTC

[jira] [Created] (HIVE-16638) Get rid of magic constant __HIVE_DEFAULT_PARTITION__ in syntax

Daniel Dai created HIVE-16638:
---------------------------------

             Summary: Get rid of magic constant __HIVE_DEFAULT_PARTITION__ in syntax
                 Key: HIVE-16638
                 URL: https://issues.apache.org/jira/browse/HIVE-16638
             Project: Hive
          Issue Type: Improvement
            Reporter: Daniel Dai


As per discussion in HIVE-16609, we'd like to get rid of magic constant __HIVE_DEFAULT_PARTITION__ in syntax. There are two use cases I currently realize:
1. alter table t drop partition(p='__HIVE_DEFAULT_PARTITION__');
2. select * from t where p='__HIVE_DEFAULT_PARTITION__';

Currently we switch p='__HIVE_DEFAULT_PARTITION__' to "p is null" internally for processing. It would be good if we can promote to the syntax level and get rid of p='__HIVE_DEFAULT_PARTITION__' completely.



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