Hive
  1. Hive
  2. HIVE-1323

leading dash in partition name is not handled properly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 0.5.0
    • Fix Version/s: 0.6.0
    • Component/s: Metastore, Query Processor
    • Labels:
      None

      Description

      This works:

      create table tmp_jvs_fact_tz(x int)
      partitioned by (ds string, hr string, gmtoffset string);

      alter table tmp_jvs_fact_tz
      add partition (ds='2010-01-03', hr='1', gmtoffset='GMT-7');
      insert overwrite table tmp_jvs_fact_daily
      partition (ds='2010-01-03', hr='1', gmtoffset='GMT-7')
      select foo from pokes;

      But this does not:

      create table tmp_jvs_fact_tz(x int)
      partitioned by (ds string, hr string, gmtoffset string);

      alter table tmp_jvs_fact_tz
      add partition (ds='2010-01-03', hr='1', gmtoffset='-7');
      insert overwrite table tmp_jvs_fact_daily
      partition (ds='2010-01-03', hr='1', gmtoffset='-7')
      select foo from pokes;

      FAILED: Error in semantic analysis: line 2:11 Partition not found '-7'

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            John Sichi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development