HyukjinKwon commented on code in PR #46437: URL: https://github.com/apache/spark/pull/46437#discussion_r1594810430
########## sql/catalyst/src/main/java/org/apache/spark/sql/connector/util/V2ExpressionSQLBuilder.java: ########## @@ -169,7 +171,16 @@ yield visitBinaryArithmetic( } protected String visitLiteral(Literal<?> literal) { - return literal.toString(); + String litString = literal.toString(); + if (literal.dataType() instanceof StringType) { + return "'" + + StringUtils.replace( Review Comment: Can we stick to 2 spaces? See "Code style guide" in https://spark.apache.org/contributing.html -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org