cloud-fan commented on code in PR #52638:
URL: https://github.com/apache/spark/pull/52638#discussion_r2443712396
##########
sql/api/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBaseParser.g4:
##########
@@ -1682,19 +1696,26 @@ alterColumnAction
| dropDefault=DROP DEFAULT
;
+// Matches one or more string literals (single or double-quoted) without
parameter markers.
+// Multiple consecutive literals are coalesced into a single string.
stringLitWithoutMarker
- : STRING_LITERAL
#stringLiteralValue
- | {!double_quoted_identifiers}? DOUBLEQUOTED_STRING
#doubleQuotedStringLiteralValue
-;
+ : (STRING_LITERAL | {!double_quoted_identifiers}? DOUBLEQUOTED_STRING)+
+ ;
+
+// Matches exactly one string literal without coalescing or parameter markers.
+// Used in type constructors where coalescing is not allowed.
+singleStringLit
Review Comment:
```suggestion
singleStringLitWithoutMarker
```
--
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]