Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-1433

Where query on HBase store fails when row_key doesn't exist in HBase

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.6.0
    • 0.6.0
    • Storage - HBase
    • None

    Description

      Give any query on hbase using where clause. If the queried row_key does not exist on HBase,
      query fails with the following exception

      java.lang.ArithmeticException: / by zero
      	at org.apache.drill.exec.store.hbase.TableStatsCalculator.<init>(TableStatsCalculator.java:88) ~[drill-storage-hbase-0.6.0-incubating-SNAPSHOT.jar:0.6.0-incubating-SNAPSHOT]
      	at org.apache.drill.exec.store.hbase.HBaseGroupScan.init(HBaseGroupScan.java:150) ~[drill-storage-hbase-0.6.0-incubating-SNAPSHOT.jar:0.6.0-incubating-SNAPSHOT]
      	at org.apache.drill.exec.store.hbase.HBaseGroupScan.<init>(HBaseGroupScan.java:116) ~[drill-storage-hbase-0.6.0-incubating-SNAPSHOT.jar:0.6.0-incubating-SNAPSHOT]
      	at org.apache.drill.exec.store.hbase.HBaseStoragePlugin.getPhysicalScan(HBaseStoragePlugin.java:65) ~[drill-storage-hbase-0.6.0-incubating-SNAPSHOT.jar:0.6.0-incubating-SNAPSHOT]
      	at org.apache.drill.exec.store.hbase.HBaseStoragePlugin.getPhysicalScan(HBaseStoragePlugin.java:35) ~[drill-storage-hbase-0.6.0-incubating-SNAPSHOT.jar:0.6.0-incubating-SNAPSHOT]
      	at org.apache.drill.exec.planner.logical.DrillTable.getGroupScan(DrillTable.java:53) ~[drill-java-exec-0.6.0-incubating-SNAPSHOT-rebuffed.jar:0.6.0-incubating-SNAPSHOT]
      

      Attachments

        1. DRILL-1433-1.patch
          2 kB
          Bhallamudi Venkata Siva Kamesh
        2. 0001-Fixing-HBase-store-when-row_key-doesn-t-exist-in-HBa.patch
          3 kB
          Bhallamudi Venkata Siva Kamesh

        Issue Links

          Activity

            People

              DrillCommitter DrillCommitter
              kam_iitkgp Bhallamudi Venkata Siva Kamesh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: