[ 
https://issues.apache.org/jira/browse/PHOENIX-1242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14176212#comment-14176212
 ] 

Hudson commented on PHOENIX-1242:
---------------------------------

SUCCESS: Integrated in Phoenix | 3.0 | Hadoop1 #269 (See 
[https://builds.apache.org/job/Phoenix-3.0-hadoop1/269/])
PHOENIX-1242 ArrayoutofBoundException Phoenix mapping to exisiting Hbase 
(Alicia Ying Shu) (jtaylor: rev 3a8ea6bd1ef549843185ffabc9b6c9afcd2ffab9)
* phoenix-core/src/it/java/org/apache/phoenix/end2end/DecodeFunctionIT.java
* phoenix-core/src/it/java/org/apache/phoenix/end2end/CoalesceFunctionIT.java
* 
phoenix-core/src/main/java/org/apache/phoenix/expression/LiteralExpression.java
* phoenix-core/src/test/java/org/apache/phoenix/schema/PDataTypeTest.java
* 
phoenix-core/src/test/java/org/apache/phoenix/schema/MappingTableDataTypeTest.java
* 
phoenix-core/src/main/java/org/apache/phoenix/expression/function/DecodeFunction.java
* 
phoenix-core/src/it/java/org/apache/phoenix/end2end/MappingTableDataTypeIT.java
* phoenix-core/src/main/java/org/apache/phoenix/schema/PDataType.java
* phoenix-core/src/test/java/org/apache/phoenix/compile/QueryCompilerTest.java
* phoenix-core/src/test/java/org/apache/phoenix/util/ColumnInfoTest.java
* phoenix-core/src/main/java/org/apache/phoenix/util/UpgradeUtil.java


> ArrayoutofBoundException Phoenix mapping to exisiting Hbase
> -----------------------------------------------------------
>
>                 Key: PHOENIX-1242
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1242
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.0.0
>            Reporter: nicolas maillard
>            Assignee: Alicia Ying Shu
>            Priority: Minor
>             Fix For: 5.0.0, 4.2, 3.2
>
>         Attachments: PHOENIX-1242_v2.patch, Phoenix-1242-V1.patch, 
> phoenix-1242.patch
>
>
> In a Phoenix mapping to an existing Hbase Table in case of mis-typing say try 
> to cast a long an actual string type, Phoenix will break with:
> java.lang.ArrayIndexOutOfBoundsException: 324
> This is a user mis-use but the error message is misleading. The problem is 
> trying to copy a string to a long a fixed Bytes[] in long decodeLong.
> Maybe a test to check if the translation is possible and a type error if size 
> don't match would provide for a more explicit error message for the user to 
> understand what he did wrong.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to