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

Introduce getPartitionColumns() functionality from HCatInputFormat

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.12.0
    • 0.13.0
    • HCatalog
    • None
    • Hide
      Introduces 2 static functions on HCatInputFormat:

      public static HCatSchema getPartitionColumns(Configuration conf) throws IOException
      public static HCatSchema getDataColumns(Configuration conf) throws IOException

      These return the partitioning columns and data column schemas for a HCatInputFormat user, and can be used after HCatInputFormat.setInput has been called on a job with an associated conf.
      Show
      Introduces 2 static functions on HCatInputFormat: public static HCatSchema getPartitionColumns(Configuration conf) throws IOException public static HCatSchema getDataColumns(Configuration conf) throws IOException These return the partitioning columns and data column schemas for a HCatInputFormat user, and can be used after HCatInputFormat.setInput has been called on a job with an associated conf.

    Description

      As of HCat 0.5, we made the class InputJobInfo private for hcatalog use only, and we made it so that setInput would not modify the InputJobInfo being passed in.

      However, if a user of HCatInputFormat wants to get what Partitioning columns or Data columns exist for the job, they are not able to do so directly from HCatInputFormat and are forced to use InputJobInfo, which currently does not work. Thus, we need to expose this functionality.

      Attachments

        1. HIVE-5636.2.patch
          5 kB
          Sushanth Sowmyan
        2. HIVE-5636.patch
          9 kB
          Sushanth Sowmyan

        Activity

          People

            sushanth Sushanth Sowmyan
            sushanth Sushanth Sowmyan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: