You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Rajat Thakur (JIRA)" <ji...@apache.org> on 2017/11/20 11:40:00 UTC

[jira] [Created] (PHOENIX-4395) Illegal data. Expected length of at least 49 bytes, but had 4 (state=22000,code=201)

Rajat Thakur created PHOENIX-4395:
-------------------------------------

             Summary: Illegal data. Expected length of at least 49 bytes, but had 4 (state=22000,code=201)
                 Key: PHOENIX-4395
                 URL: https://issues.apache.org/jira/browse/PHOENIX-4395
             Project: Phoenix
          Issue Type: Bug
    Affects Versions: 4.7.0, 4.12.0
            Reporter: Rajat Thakur


I am importing Oracle ExaData to Hbase via Sqoop.
There are problem in following Column attributes whose dataType is : DATE, TIMNESTAMP, BIGINT

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:489)
	at org.apache.phoenix.exception.SQLExceptionInfo.buildException(SQLExceptionInfo.java:150)
	at org.apache.phoenix.schema.KeyValueSchema.next(KeyValueSchema.java:211)
	at org.apache.phoenix.expression.ProjectedColumnExpression.evaluate(ProjectedColumnExpression.java:116)
	at org.apache.phoenix.compile.ExpressionProjector.getValue(ExpressionProjector.java:69)
	at org.apache.phoenix.jdbc.PhoenixResultSet.getString(PhoenixResultSet.java:609)
	at sqlline.Rows$Row.<init>(Rows.java:183)
	at sqlline.BufferedRows.<init>(BufferedRows.java:38)
	at sqlline.SqlLine.print(SqlLine.java:1660)
	at sqlline.Commands.execute(Commands.java:833)
	at sqlline.Commands.sql(Commands.java:732)
	at sqlline.SqlLine.dispatch(SqlLine.java:813)
	at sqlline.SqlLine.begin(SqlLine.java:686)
	at sqlline.SqlLine.start(SqlLine.java:398)
	at sqlline.SqlLine.main(SqlLine.java:291)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)