gengliangwang commented on code in PR #36212:
URL: https://github.com/apache/spark/pull/36212#discussion_r856221362
##########
sql/core/src/test/scala/org/apache/spark/sql/sources/InsertSuite.scala:
##########
@@ -142,17 +142,30 @@ class InsertSuite extends DataSourceTest with
SharedSparkSession {
)
}
- test("SELECT clause generating a different number of columns is not
allowed.") {
+ test("SELECT clause generating a different number of columns: negative
test.") {
val message = intercept[AnalysisException] {
sql(
s"""
- |INSERT OVERWRITE TABLE jsonTable SELECT a FROM jt
- """.stripMargin)
+ |INSERT OVERWRITE TABLE jsonTable SELECT a FROM jt
Review Comment:
nit: unnecessary change
--
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]