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

HIVE can't count hbase NULL column value properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 0.13.0
    • None
    • HBase Handler
    • None
    • HIVE version 0.13.0
      HBase version 0.98.0

    Description

      HBase table structure is like this:
      table name : 'testtable'
      column family : 'data'
      column 1 : 'name'
      column 2 : 'color'

      HIVE mapping table is structure is like this:
      table name : 'hb_testtable'
      column 1 : 'name'
      column 2 : 'color'

      in hbase, put two rows
      James, blue
      May

      then do select in hive
      select * from hb_testtable where color is null

      the result is
      May, NULL

      then try count
      select count from hb_testtable where color is null

      the result is 0, which should be 1

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kentkong Kent Kong
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: