MaxGekk commented on code in PR #45405: URL: https://github.com/apache/spark/pull/45405#discussion_r1516070311
########## sql/api/src/main/scala/org/apache/spark/sql/types/DataType.scala: ########## @@ -117,7 +117,7 @@ object DataType { private val FIXED_DECIMAL = """decimal\(\s*(\d+)\s*,\s*(\-?\d+)\s*\)""".r private val CHAR_TYPE = """char\(\s*(\d+)\s*\)""".r private val VARCHAR_TYPE = """varchar\(\s*(\d+)\s*\)""".r - private val COLLATED_STRING_TYPE = """string\s+COLLATE\s+'([\w_]+)'""".r + private val COLLATED_STRING_TYPE = """string\s+COLLATE\s+([\w_]+)""".r Review Comment: When you define `collationName=identifier` where `identifier` can be: ``` quotedIdentifier : BACKQUOTED_IDENTIFIER | {double_quoted_identifiers}? DOUBLEQUOTED_STRING ; ``` but `\w` captures only `[a-zA-Z_0-9]`. Is it in purpose, and what happens if an user pass the collation name as ``` `UCS_BASIC_LCASE` or "UCS_BASIC_LCASE" ``` -- 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