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

HBase handler skips rows with null valued first cells when only row key is selected

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 0.11.0, 0.11.1, 0.12.0, 0.13.0
    • Fix Version/s: 1.3.0, 2.0.0
    • Component/s: HBase Handler
    • Labels:
      None

      Description

      HBaseStorageHandler skips rows with null valued first cells when only row key is selected.

      SELECT key, col1, col2 FROM hbase_table;
      key1	cell1	cell2 
      key2	NULL	cell3
      
      SELECT COUNT(key) FROM hbase_table;
      1
      

      HiveHBaseTableInputFormat.getRecordReader makes first cell selected to avoid skipping rows. But when the first cell is null, HBase skips that row.

      http://hbase.apache.org/book/perf.reading.html 12.9.6. Optimal Loading of Row Keys describes how to deal with this problem.

      I tried to find an existing issue, but I couldn't. If you find a same issue, please make this issue duplicated.

        Attachments

        1. HIVE-5277.3.patch.txt
          8 kB
          Swarnim Kulkarni
        2. HIVE-5277.2.patch.txt
          7 kB
          Teddy Choi
        3. HIVE-5277.1.patch.txt
          7 kB
          Teddy Choi

          Issue Links

            Activity

              People

              • Assignee:
                swarnim Swarnim Kulkarni
                Reporter:
                teddy.choi Teddy Choi
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: