MaxGekk commented on code in PR #37322:
URL: https://github.com/apache/spark/pull/37322#discussion_r932506853
##########
sql/core/src/test/scala/org/apache/spark/sql/DatasetUnpivotSuite.scala:
##########
@@ -305,14 +305,17 @@ class DatasetUnpivotSuite extends QueryTest
valueColumnName = "val"
)
}
- checkErrorClass(
+ checkError(
exception = e,
errorClass = "UNPIVOT_VALUE_DATA_TYPE_MISMATCH",
- msg = "Unpivot value columns must share a least common type, some types
do not: \\[" +
- "\"STRING\" \\(`str1#\\d+`\\), " +
- "\"INT\" \\(`int1#\\d+`, `int2#\\d+`, `int3#\\d+`, ...\\), " +
- "\"BIGINT\" \\(`long1#\\d+L`, `long2#\\d+L`\\)\\];(\n.*)*",
- matchMsg = true)
+ errorSubClass = None,
+ sqlState = None,
Review Comment:
but I think it is better to set default values in the most wide method. I
will remove one overloaded method and add default values.
--
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]