wangyum commented on code in PR #37574:
URL: https://github.com/apache/spark/pull/37574#discussion_r957913997
##########
sql/hive/src/test/scala/org/apache/spark/sql/hive/orc/HiveOrcSourceSuite.scala:
##########
@@ -112,37 +113,43 @@ class HiveOrcSourceSuite extends OrcSuite with
TestHiveSingleton {
withTempDir { dir =>
val orcDir = new File(dir, "orc").getCanonicalPath
+ def validateErrorMessage(msg: String, column: String, dt: String,
format: String): Unit = {
+ val excepted = s"column `$column` has a data type of $dt, " +
+ s"which is not supported by $format."
+ assert(msg.toLowerCase(Locale.ROOT).contains(excepted))
Review Comment:
Let's remove `.toLowerCase(Locale.ROOT)`.
--
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]