srielau commented on code in PR #45620:
URL: https://github.com/apache/spark/pull/45620#discussion_r1543513662
##########
sql/core/src/test/scala/org/apache/spark/sql/execution/SparkSqlParserSuite.scala:
##########
@@ -800,4 +800,88 @@ class SparkSqlParserSuite extends AnalysisTest with
SharedSparkSession {
start = 0,
stop = 63))
}
+
+ test("verify whitespace handling - standard whitespace") {
+ parser.parsePlan("SELECT 1") // ASCII space
+ parser.parsePlan("SELECT\r1") // ASCII carriage return
+ parser.parsePlan("SELECT\n1") // ASCII line feed
+ parser.parsePlan("SELECT\t1") // ASCII tab
+ parser.parsePlan("SELECT\v1") // ASCII vertical tab
+ parser.parsePlan("SELECT\f1") // ASCII form feed
+ }
+
+ // Need to switch off scala style for Unicode characters
+ // scalastyle:off
+ test("verify whitespace handling - ASCII form feed") {
+ parser.parsePlan("SELECT\u000C1") // ASCII form feed
+ }
+
Review Comment:
```suggestion
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]