RunyaoChen commented on code in PR #39711:
URL: https://github.com/apache/spark/pull/39711#discussion_r1088470514
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryParsingErrors.scala:
##########
@@ -292,6 +292,27 @@ private[sql] object QueryParsingErrors extends
QueryErrorsBase {
ctx)
}
+ def nestedTypeMissingElementTypeError(
+ dataType: String, ctx: PrimitiveDataTypeContext): Throwable = {
+ dataType match {
+ case "array" =>
+ new ParseException(
+ errorClass = "INCOMPLETE_TYPE_DEFINITION.ARRAY",
+ messageParameters = Map("elementType" -> "<elementType>"),
Review Comment:
@gengliangwang Because of a limitation of the current framework replacing
all `<([a-zA-Z0-9_-]+)>` as a parameter and throws an exception if it's
undefined.
If I do `For example: Array<elementType>` as is, it throws an undefined
parameter exception.
I wish to keep `<` `>` without using a parameter, do you have better ways to
keep `<` `>` as is?
--
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]