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

   ### What changes were proposed in this pull request?
   Remove `errorOnDuplicatedFieldNames` from Python UDFs
   
   
   ### Why are the changes needed?
   to make the logic more clearer, the `errorOnDuplicatedFieldNames` was 
introduced in 
https://github.com/apache/spark/commit/305aa4a89efe02f517f82039225a99b31b20146f 
for `DataFrame.toPandas`, and it is always `true` in Python UDFs so duplicated 
fields are never allowed in Python UDFs.
   
   Remove this always-true variable to reduce confusion when refactoring UDF 
stuffs.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   Existing tests
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No
   


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