[ 
https://issues.apache.org/jira/browse/PHOENIX-6219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gokcen Iskender updated PHOENIX-6219:
-------------------------------------
    Description: GlobalIndexChecker has repairIndexRows method, that builds a 
scan for data table and goes over indexMaintainer.getAllColumns to get columns 
from that. But the issue is there are only 2 columns for the SINGLE_CELL index. 
That part needs to change.  (was: This Jira is a followup Jira of PHOENIX-5923 
where data and index might have different storage and encoding formats. 
IndexMaintainer and protobuf needs to change to handle this. Right now, index 
maintainer assumes both index and data tables have the same format. The 
protobuf needs to be changed so that IndexMaintainer knows about the data table 
storage and encoding formats

Repro:
 # Create a table with ONE_CELL_PER_COLUMN storage format
 # Create an index that has covered columns and the IMMUTABLE_STORAGE_SCHEME is 
SINGLE_CELL_ARRAY_WITH_OFFSETS
 # Upsert rows to data table
 # Query the covered column using index --> Null value is returned even though 
there is a value. 

IndexMaintainer has a 4 year old code that doesn't return a value for covered 
columns,)

> GlobalIndexChecker should work for index:SINGLE_CELL_ARRAY_WITH_OFFSETS and 
> data:ONE_CELL_PER_COLUMN
> ----------------------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-6219
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-6219
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: Gokcen Iskender
>            Priority: Major
>
> GlobalIndexChecker has repairIndexRows method, that builds a scan for data 
> table and goes over indexMaintainer.getAllColumns to get columns from that. 
> But the issue is there are only 2 columns for the SINGLE_CELL index. That 
> part needs to change.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to