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

convert_from fails with ' Wrong length 1(1-0) in the buffer '1', expected 4.'

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.8.0
    • Fix Version/s: Future
    • Component/s: Storage - HBase
    • Labels:
      None

      Description

      git.commit.id.abbrev=f1b59ed

      Hbase :

      create 'fewtypes_null', 'types'
      put 'fewtypes_null', 1, 'types:int_col', 1
      

      Now from Drill :

      select * from fewtypes_null;
      +------------+------------+
      |  row_key   |   types    |
      +------------+------------+
      | [B@2461ae9c | {"int_col":"MQ=="} |
      

      The below query fails :

      select convert_from(a.types.int_col, 'INT') from fewtypes_null a;
      Query failed: RemoteRpcException: Failure while running fragment., Wrong length 1(1-0) in the buffer '1', expected 4. [ f9a3bb31-bb19-428c-8c7d-99e1898e66e7 on qa-node114.qa.lab:31010 ]
      [ f9a3bb31-bb19-428c-8c7d-99e1898e66e7 on qa-node114.qa.lab:31010 ]
      

      I attached the complete error from the logs. Let me know if you need anything else

        Attachments

        1. error.log
          2 kB
          Rahul Kumar Challapalli
        2. dataload.hql
          1 kB
          Rahul Kumar Challapalli

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rkins Rahul Kumar Challapalli
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: