Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-4394

ERROR 201 (22000): Illegal data. Expected length of at least 49 bytes, but had 4

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • 4.12.0
    • None
    • None
    • None

    Description

      I am trying to load data from Oracle ExaData to Hbase via Sqoop and then query via Phoenix.
      These kind of errors occur for importing following data Type :
      Oracle Exadata PHoenix
      Date Date
      Timestamp Timestamp
      Number(p,s) Decimal(p,s)

      Error: ERROR 201 (22000): Illegal data. Expected length of at least 49 bytes, but had 4 (state=22000,code=201)
      java.sql.SQLException: ERROR 201 (22000): Illegal data. Expected length of at least 49 bytes, but had 4
      at org.apache.phoenix.exception.SQLExceptionCode$Factory$1.newException(SQLExceptionCode.java:422)
      at org.apache.phoenix.exception.SQLExceptionInfo.buildException(SQLExceptionInfo.java:145)
      at org.apache.phoenix.schema.KeyValueSchema.next(KeyValueSchema.java:211)
      at org.apache.phoenix.expression.ProjectedColumnExpression.evaluate(ProjectedColumnExpression.java:115)
      at org.apache.phoenix.compile.ExpressionProjector.getValue(ExpressionProjector.java:69)
      at org.apache.phoenix.jdbc.PhoenixResultSet.getString(PhoenixResultSet.java:608)
      at sqlline.Rows$Row.<init>(Rows.java:183)
      at sqlline.BufferedRows.<init>(BufferedRows.java:38)
      at sqlline.SqlLine.print(SqlLine.java:1650)
      at sqlline.Commands.execute(Commands.java:833)
      at sqlline.Commands.sql(Commands.java:732)
      at sqlline.SqlLine.dispatch(SqlLine.java:808)
      at sqlline.SqlLine.begin(SqlLine.java:681)
      at sqlline.SqlLine.start(SqlLine.java:398)
      at sqlline.SqlLine.main(SqlLine.java:292)

      Attachments

        Activity

          People

            Unassigned Unassigned
            rajat.thakur Rajat Thakur
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: