ianmcook opened a new pull request, #46687: URL: https://github.com/apache/spark/pull/46687
### What changes were proposed in this pull request? Users will no longer get an error if they pass a length-1 list or tuple of StructType as the schema argument to createDataFrame() ### Why are the changes needed? In Python code it is easy to accidentally create a length-1 tuple of `StructType` instead of just a `StructType` if you leave a trailing comma at the end of a line. ### Does this PR introduce _any_ user-facing change? It prevents an unhelpful error message in this case. ### How was this patch tested? Tests are TBD ### 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]
