phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From swaroopa kadam <swaroopa.kada...@gmail.com>
Subject Re: ArrayIndexOutOfBound while upserting in a view with index on a base table with index
Date Fri, 07 Jun 2019 19:56:02 GMT
Filed a jira: https://issues.apache.org/jira/browse/PHOENIX-5322

Thank you.

On Wed, Jun 5, 2019 at 10:01 PM swaroopa kadam <swaroopa.kadam07@gmail.com>
wrote:

> Hi,
>
> I am trying to upsert a row in a view created on a base table which has
> indexes, also the view has index too. I am getting ArrayIndexOutOfBound
> exception from IndexMaintainer class. Without looking at the code -- my
> hypothesis is code might be trying to update indexes on the base table as
> well for the new row?
>
> java.lang.ArrayIndexOutOfBoundsException: -1
> at java.util.ArrayList.elementData(ArrayList.java:422)
> at java.util.ArrayList.get(ArrayList.java:435)
> at
> org.apache.phoenix.index.IndexMaintainer.initCachedState(IndexMaintainer.java:1619)
> at
> org.apache.phoenix.index.IndexMaintainer.<init>(IndexMaintainer.java:558)
>
> Do we not allow this?
> I am on Phoenix version 4.13 .
>
> Thank you for the help.
>
> --
>
>
> Swaroopa Kadam
> [image: https://]about.me/swaroopa_kadam
> <https://about.me/swaroopa_kadam?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api>
>


-- 


Swaroopa Kadam
[image: https://]about.me/swaroopa_kadam
<https://about.me/swaroopa_kadam?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message