swaminathanmanish commented on code in PR #12115: URL: https://github.com/apache/pinot/pull/12115#discussion_r1423195561
########## pinot-core/src/main/java/org/apache/pinot/core/segment/processing/partitioner/TableConfigPartitioner.java: ########## @@ -41,6 +43,16 @@ public TableConfigPartitioner(String columnName, ColumnPartitionConfig columnPar @Override public String getPartition(GenericRow genericRow) { - return String.valueOf(_partitionFunction.getPartition(genericRow.getValue(_column))); + return String.valueOf(_partitionFunction.getPartition(convertToString(genericRow.getValue(_column)))); + } + + private static String convertToString(Object value) { Review Comment: Is there a way to catch unsupported types here to ensure that for new types, we do the string conversion correctly ? Same for the logic in **MutableSegmentImpl.java** (similar to what you have in getStringValue utility) -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org