srowen commented on a change in pull request #31096:
URL: https://github.com/apache/spark/pull/31096#discussion_r556130557
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/ParserUtils.scala
##########
@@ -172,6 +172,20 @@ object ParserUtils {
}
sb.append(code.asInstanceOf[Char])
i += 5
+ } else if ((i + 10 < strLength) && b.charAt(i + 1) == 'U' &&
+ (2 until 10).forall(j => Character.digit(b.charAt(i + j),
16) != -1)) {
+ // \U00000000 style 32-bit unicode character literals.
+
+ val codePoint = Integer.parseInt(b.substring(i + 2, i + 10), 16)
Review comment:
For a local var? really won't matter. Whatever's simpler IMHO. I am not
sure the math on codePoint below works unless it's a long?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]