phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maryann Xue (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-3727) Upserts into salted table are failing in Phoenix-Calcite
Date Wed, 15 Mar 2017 06:18:41 GMT

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

Maryann Xue commented on PHOENIX-3727:
--------------------------------------

Update: Synced master branch on my local copy and fixed all compilation bugs after merge,
but hitting some issues now. There has been some big changes on both sides, and some of them
are not bugs but just ref changes. I'm fixing one bug now.

> Upserts into salted table are failing in Phoenix-Calcite
> --------------------------------------------------------
>
>                 Key: PHOENIX-3727
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3727
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: Rajeshbabu Chintaguntla
>            Assignee: Rajeshbabu Chintaguntla
>              Labels: calcite
>             Fix For: 4.10.0
>
>         Attachments: PHOENIX-3727.patch
>
>
> {noformat}
> testMutableTableIndexMaintanenceSaltedSalted(org.apache.phoenix.end2end.index.SaltedIndexIT)
 Time elapsed: 4.607 sec  <<< ERROR!
> java.sql.SQLException: 2
> 	at org.apache.phoenix.end2end.index.SaltedIndexIT.testMutableTableIndexMaintanence(SaltedIndexIT.java:123)
> 	at org.apache.phoenix.end2end.index.SaltedIndexIT.testMutableTableIndexMaintanenceSaltedSalted(SaltedIndexIT.java:74)
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 2
> 	at org.apache.phoenix.end2end.index.SaltedIndexIT.testMutableTableIndexMaintanence(SaltedIndexIT.java:123)
> 	at org.apache.phoenix.end2end.index.SaltedIndexIT.testMutableTableIndexMaintanenceSaltedSalted(SaltedIndexIT.java:74)
> {noformat}
> This is because for salted tables we are changing column indexes within UpsertCompiler#upsertSelect
so with preparedStatements we increment columnindexes by 1 so at some point of time we get
ArrayIndexOutOfBoundsException.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message