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

Dynamic partition insert should enforce the order of the partition spec is the same as the one in schema

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.8.0
    • None
    • None
    • Reviewed

    Description

      Suppose the table schema is (a string, b string) partitioned by (p1 string, p2 string), a dynamic partition insert is allowed to:

      insert overwrite ... partition (p2="...", p1);

      which will create the wrong HDFS directory structure such as /.../p2=.../p1=.... This is contradictory to the metastore's assumption of the HDFS directory structure.

      Attachments

        1. HIVE-2519.patch
          5 kB
          Ning Zhang
        2. HIVE-2519.3.patch
          6 kB
          Ning Zhang

        Activity

          People

            nzhang Ning Zhang
            nzhang Ning Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: