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

Drillbit does not send the last RPC message when "limit" is appended to queries on hbase voter table

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.7.0
    • Future
    • Execution - RPC
    • None
    • Windows/OS X

    Description

      . When using “limit” in queries on hbase “voter” table, drill server does not return the very last RPC message. The very last RPC message is the one translated by DrillClient to a null record batch to notify the ODBC driver of the completion/failure of a query.

      This problem is only with the voter table; I tested other hbase multi-region and non-multi-region tables and they worked fine.

      It is only queries such as

      ------------------------------------------------------------
      SELECT * FROM (select cast(row_key as integer) voter_id, cast(voter.onecf.name as varchar(30)) name, cast(voter.twocf.age as integer) age, cast(voter.twocf.registration as varchar(20)) registration, cast(voter.threecf.contributions as decimal(6,2)) contributions, cast(voter.threecf.voterzone as integer) voterzone,cast(voter.fourcf.create_date as timestamp) create_date from hbase.voter) T LIMIT 0

      select cast(row_key as integer) voter_id, cast(voter.onecf.name as varchar(30)) name, cast(voter.twocf.age as integer) age, cast(voter.twocf.registration as varchar(20)) registration, cast(voter.threecf.contributions as decimal(6,2)) contributions, cast(voter.threecf.voterzone as integer) voterzone,cast(voter.fourcf.create_date as timestamp) create_date from hbase.voter limit 5

      that fail because the very last RPC message is not sent from the server to the DrillClient and as a result the driver keeps waiting for it.

      Attachments

        1. drillbit.log
          32 kB
          Alexander Zarei
        2. drillbit.out
          0.4 kB
          Alexander Zarei
        3. drillclient20150109T155028.log
          14 kB
          Alexander Zarei
        4. driver.log
          16 kB
          Alexander Zarei

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alzarei Alexander Zarei
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: