dtenedor opened a new pull request, #36514:
URL: https://github.com/apache/spark/pull/36514

   ### What changes were proposed in this pull request?
   
   Fix a bug in UPDATE commands with DEFAULT values.
   
   Specifically, the previous implementation of the 
`mapStructFieldNamesToExpressions` method associated column names with default 
values in the order of the keys in `Map[String, StructField]`. Since that's not 
always true, this PR updates that method to consume these columns in the order 
they actually appear in the target table schema instead.
   
   ### Why are the changes needed?
   
   The bug is fixed with this PR.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   An extra test exercises an error case that failed before, but is now fixed.


-- 
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]

Reply via email to