Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 66F1E200D44 for ; Mon, 20 Nov 2017 18:34:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 65EF4160BF9; Mon, 20 Nov 2017 17:34:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id ACA90160BE1 for ; Mon, 20 Nov 2017 18:34:04 +0100 (CET) Received: (qmail 4474 invoked by uid 500); 20 Nov 2017 17:34:03 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 4463 invoked by uid 99); 20 Nov 2017 17:34:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Nov 2017 17:34:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BC82AC78EA for ; Mon, 20 Nov 2017 17:34:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -98.511 X-Spam-Level: X-Spam-Status: No, score=-98.511 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_NUMSUBJECT=0.5, KB_WAM_FROM_NAME_SINGLEWORD=0.2, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id bV3IOyFR6wl6 for ; Mon, 20 Nov 2017 17:34:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DEDB85FDCE for ; Mon, 20 Nov 2017 17:34:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6F9A2E0EF1 for ; Mon, 20 Nov 2017 17:34:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1C940240DA for ; Mon, 20 Nov 2017 17:34:00 +0000 (UTC) Date: Mon, 20 Nov 2017 17:34:00 +0000 (UTC) From: "Josh Elser (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (PHOENIX-4394) ERROR 201 (22000): Illegal data. Expected length of at least 49 bytes, but had 4 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 20 Nov 2017 17:34:05 -0000 [ https://issues.apache.org/jira/browse/PHOENIX-4394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Josh Elser resolved PHOENIX-4394. --------------------------------- Resolution: Duplicate PHOENIX-4395 [~rajat.thakur], please be patient when you are creating new JIRA issues. You created 6 issues for the same problem which creates unnecessary work for us to clean up. Thank you in advance. > ERROR 201 (22000): Illegal data. Expected length of at least 49 bytes, but had 4 > -------------------------------------------------------------------------------- > > Key: PHOENIX-4394 > URL: https://issues.apache.org/jira/browse/PHOENIX-4394 > Project: Phoenix > Issue Type: Bug > Affects Versions: 4.12.0 > Reporter: Rajat Thakur > Priority: Critical > > 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.(Rows.java:183) > at sqlline.BufferedRows.(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) -- This message was sent by Atlassian JIRA (v6.4.14#64029)