[ https://issues.apache.org/jira/browse/PHOENIX-3374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15615811#comment-15615811 ]
Hudson commented on PHOENIX-3374: --------------------------------- FAILURE: Integrated in Jenkins build Phoenix-master #1457 (See [https://builds.apache.org/job/Phoenix-master/1457/]) PHOENIX-3374 Wrong data row key is getting generated for local indexes (rajeshbabu: rev 10880a37ca8d9594a6c2bfa5d77639368612fae7) * (edit) phoenix-core/src/it/java/org/apache/phoenix/end2end/index/LocalIndexIT.java * (edit) phoenix-core/src/main/java/org/apache/phoenix/index/IndexMaintainer.java > Wrong data row key is getting generated for local indexes for functions with > fixed non null columns > --------------------------------------------------------------------------------------------------- > > Key: PHOENIX-3374 > URL: https://issues.apache.org/jira/browse/PHOENIX-3374 > Project: Phoenix > Issue Type: Bug > Reporter: Rajeshbabu Chintaguntla > Assignee: Rajeshbabu Chintaguntla > Fix For: 4.9.0, 4.8.2 > > Attachments: PHOENIX-3374.patch, PHOENIX-3374_v2.patch, > PHOENIX-3374_v3.patch > > > When we create local indexes on functions then while joining back missing > columns from data table is generating wrong data row key. > When we generated index row key schema we are initializing isNullableToBe to > true always even if the expression might be not null. Because of this we > might change the column type to other castable one and may consider actual > data as separator bytes. > {noformat} > ... > if (indexField == null) { > Expression e = expressionItr.next(); > isNullableToBe = true; > dataTypeToBe = > IndexUtil.getIndexColumnDataType(isNullableToBe, e.getDataType()); > sortOrderToBe = descIndexColumnBitSet.get(i) ? SortOrder.DESC > : SortOrder.ASC; > maxLengthToBe = e.getMaxLength(); > scaleToBe = e.getScale(); > ... > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)