kadirozde commented on code in PR #2015:
URL: https://github.com/apache/phoenix/pull/2015#discussion_r1833293612


##########
phoenix-core-client/src/main/java/org/apache/phoenix/index/IndexMaintainer.java:
##########
@@ -785,7 +792,11 @@ public byte[] buildRowKey(ValueGetter valueGetter, 
ImmutableBytesWritable rowKey
                        dataColumnType = expression.getDataType();
                        dataSortOrder = expression.getSortOrder();
                     isNullable = expression.isNullable();
-                       expression.evaluate(new ValueGetterTuple(valueGetter, 
ts), ptr);
+                    if (expression instanceof PartitionIdFunction) {

Review Comment:
   Add check for ensuring that the partition id expression is the prefix of the 
index table row key (by Tanuj)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@phoenix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to