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

HCatStorer fails to store boolean type

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.11.0
    • Fix Version/s: 0.12.0
    • Component/s: HCatalog
    • Labels:
      None
    • Release Note:
      Saving records that contain Boolean type's is now supported via Pig's HCatStorer.

      Description

      Unable to store boolean values to HCat table

      Assume in Hive you have two tables...
      CREATE TABLE btest(test as boolean);
      CREATE TABLE btest2(test as boolean);

      Then in Pig
      A = LOAD 'btest' USING org.apache.hcatalog.pig.HCatLoader();
      STORE A INTO 'btest2' USING org.apache.hcatalog.pig.HCatStorer();

      You will get an "ERROR 115: Unsupported type 5: in Pig's Schema"

      Checking HCatBaseStorer.java, the case for data types doesn't check for booleans. Might have been overlooked in adding boolean to Pig in 0.10

        Attachments

        1. HIVE-5104.2.patch
          8 kB
          Sushanth Sowmyan
        2. HIVE-5104.1.patch.txt
          7 kB
          Karl D. Gierach

          Activity

            People

            • Assignee:
              kgierach Karl D. Gierach
              Reporter:
              rfrohock Ron Frohock
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: