You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/09/24 15:30:02 UTC

[jira] [Commented] (PHOENIX-3991) ROW_TIMESTAMP on TIMESTAMP column type throws ArrayOutOfBound when upserting without providing a value.

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

Hudson commented on PHOENIX-3991:
---------------------------------

FAILURE: Integrated in Jenkins build Phoenix-omid2 #89 (See [https://builds.apache.org/job/Phoenix-omid2/89/])
PHOENIX-3991 ROW_TIMESTAMP on TIMESTAMP column type throws (ssa: rev b37b7d7505570d8b198ecd4b6e5a626c73bf7ebe)
* (edit) phoenix-core/src/it/java/org/apache/phoenix/end2end/RowTimestampIT.java
* (edit) phoenix-core/src/main/java/org/apache/phoenix/execute/MutationState.java


> ROW_TIMESTAMP on TIMESTAMP column type throws ArrayOutOfBound when upserting without providing a value.
> -------------------------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-3991
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3991
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.10.0
>            Reporter: Eric Belanger
>            Assignee: Sergey Soldatov
>            Priority: Major
>         Attachments: PHOENIX-3991-1.patch
>
>
> {code:sql}
> CREATE TABLE TEST (
>   CREATED TIMESTAMP NOT NULL,
>   ID CHAR(36) NOT NULL,
>   DEFINITION VARCHAR,
>   CONSTRAINT TEST_PK PRIMARY KEY (CREATED ROW_TIMESTAMP, ID)
> )
> -- WORKS
> UPSERT INTO TEST (CREATED, ID, DEFINITION) VALUES (NOW(), 'A', 'DEFINITION A');
> -- ArrayOutOfBoundException
> UPSERT INTO TEST (ID, DEFINITION) VALUES ('A', 'DEFINITION A');
> {code}
> Stack Trace:
> {noformat}
> java.lang.ArrayIndexOutOfBoundsException: 8
> 	at org.apache.phoenix.execute.MutationState.getNewRowKeyWithRowTimestamp(MutationState.java:554)
> 	at org.apache.phoenix.execute.MutationState.generateMutations(MutationState.java:640)
> 	at org.apache.phoenix.execute.MutationState.addRowMutations(MutationState.java:572)
> 	at org.apache.phoenix.execute.MutationState.send(MutationState.java:1003)
> 	at org.apache.phoenix.execute.MutationState.send(MutationState.java:1469)
> 	at org.apache.phoenix.execute.MutationState.commit(MutationState.java:1301)
> 	at org.apache.phoenix.jdbc.PhoenixConnection$3.call(PhoenixConnection.java:539)
> 	at org.apache.phoenix.jdbc.PhoenixConnection$3.call(PhoenixConnection.java:536)
> 	at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
> 	at org.apache.phoenix.jdbc.PhoenixConnection.commit(PhoenixConnection.java:536)
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)