phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "maillard (JIRA)" <>
Subject [jira] [Created] (PHOENIX-1242) ArrayoutofBoundException Phoenix mapping to exisiting Hbase
Date Sun, 07 Sep 2014 16:32:28 GMT
maillard created PHOENIX-1242:

             Summary: ArrayoutofBoundException Phoenix mapping to exisiting Hbase
                 Key: PHOENIX-1242
             Project: Phoenix
          Issue Type: Bug
    Affects Versions: 4.0.0
            Reporter: maillard
            Priority: Minor

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

View raw message