Jackie-Jiang commented on code in PR #10990: URL: https://github.com/apache/pinot/pull/10990#discussion_r1277977517
########## pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/index/metadata/ColumnMetadataImpl.java: ########## @@ -251,8 +251,10 @@ public static ColumnMetadataImpl fromPropertiesConfiguration(String column, Prop // NOTE: Use getProperty() instead of getString() to avoid variable substitution ('${anotherKey}'), which can cause // problem for special values such as '$${' where the first '$' is identified as escape character. // TODO: Use getProperty() for other properties as well to avoid the overhead of variable substitution - String minString = (String) config.getProperty(Column.getKeyFor(column, Column.MIN_VALUE)); - String maxString = (String) config.getProperty(Column.getKeyFor(column, Column.MAX_VALUE)); + String minString = StringEscapeUtils.unescapeJava((String) Review Comment: This can cause problem when the original value has `\` because we didn't call `escapeJava()` when writing the value. Find this issue in this test [run](https://github.com/apache/pinot/actions/runs/5691584661/job/15427035722?pr=11206). I think we should just use `escapeJava()` to solve the whitespace and unicode issue -- 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