Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-16638

Get rid of magic constant __HIVE_DEFAULT_PARTITION__ in syntax

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            daijy Daniel Dai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: