Gschiavon opened a new pull request #27578: [WIP][SPARK-30828][SQL] Improving insertInto behaviour URL: https://github.com/apache/spark/pull/27578 ### What changes were proposed in this pull request? The only change is that I've added a column check when using insertInto. Now it checks that the query dataFrame has the same column names as the target table. ### Why are the changes needed? They are needed because it helps a lot when you have a lot of columns, and if you have one missing the current message doesn't tell you which one. Also insertInto just check that the number of columns of both are the same, but not the order or anything. ### Does this PR introduce any user-facing change? No ### How was this patch tested? I added a test case just to show the new behaviour, obviously there will be more test added depending on the comments Jira -> https://issues.apache.org/jira/browse/SPARK-30828
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org