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

drop partition doesnot work for mixture of string and non-string columns for non-equality operatior

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.9.1, 0.10.0
    • Fix Version/s: None
    • Component/s: Metastore, Query Processor
    • Labels:
    • Environment:

      SuSE 11 SP 1
      Hadoop Cluster + Hive

      Description

      There is still problem in "drop partition" columns if the partition columns are mixture of string and non-string.

      There is behavioural change after fixing HIVE-3063.
      Before fix
      ==========
      create table ptestfilter (a string, b int) partitioned by (c string, d int);
      alter table ptestfilter add partition (c='1', d=2);
      alter table ptestFilter add partition (c='2', d=1);
      alter table ptestfilter drop partition (c<'2'); //this will execute fine

      After fix
      ==========
      create table ptestfilter (a string, b int) partitioned by (c string, d int);
      alter table ptestfilter add partition (c='1', d=2);
      alter table ptestFilter add partition (c='2', d=1);
      alter table ptestfilter drop partition (c<'2'); //this will fail to execute.

        Attachments

        1. HIVE-3309.patch
          3 kB
          Rohith Sharma K S
        2. HIVE-3309.patch
          1 kB
          Rohith Sharma K S

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rohithsharma Rohith Sharma K S
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: