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

HCatStorer fails to store boolean type

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersStop watchingWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.11.0
    • 0.12.0
    • HCatalog
    • None
    • 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.1.patch.txt
          7 kB
          Karl D. Gierach
        2. HIVE-5104.2.patch
          8 kB
          Sushanth Sowmyan

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            kgierach Karl D. Gierach Assign to me
            rfrohock Ron Frohock
            Votes:
            0 Vote for this issue
            Watchers:
            4 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment