MaxGekk commented on code in PR #38861:
URL: https://github.com/apache/spark/pull/38861#discussion_r1037892402
##########
core/src/main/resources/error/error-classes.json:
##########
@@ -876,6 +876,13 @@
],
"sqlState" : "42000"
},
+ "NOT_ENOUGH_DATA_COLUMNS" : {
+ "message" : [
+ "Cannot write to <tableName>, not enough data columns:",
Review Comment:
The condition is more strict:
https://github.com/apache/spark/blob/a80899f8bef84bb471606f0bbef889aa5e81628b/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/rules.scala#L380
it checks exact number of columns but not `enough data columns:`.
--
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]