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

Issue in column type with data type as BINARY

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Hi,
      I am using Hive 10. When I create an external table with column type as Binary, the query result on the table is showing some junk values for the column with binary datatype.

      Please find below the query I have used to create the table:

      CREATE EXTERNAL TABLE BOOL1(NB BOOLEAN,email STRING, bitfld BINARY)
      ROW FORMAT DELIMITED
      FIELDS TERMINATED BY '^'
      LINES TERMINATED BY '\n'
      STORED AS TEXTFILE
      LOCATION '/user/hivetables/testbinary';

      The query I have used is : select * from bool1

      The sample data in the hdfs file is:

      0^arun@abc.com^001
      1^arun@abc.com^010
      ^arun@abc.com^011
      ^arun@abc.com^100
      t^arun@abc.com^101
      f^arun@abc.com^110
      true^arun@abc.com^111
      false^arun@abc.com^001
      123^ ^01100010
      12344^ ^01100001

      Please share your inputs if it is possible.

      Thanks,
      Arun

      Attachments

        1. HIVE-5221.1.patch
          20 kB
          Mohammad Islam
        2. HIVE-5221.2.patch
          1 kB
          Mohammad Islam

        Activity

          People

            kamrul Mohammad Islam
            arunvpy Arun Vasu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: