ueshin opened a new pull request, #39960: URL: https://github.com/apache/spark/pull/39960
### What changes were proposed in this pull request? Fixes `DataFrame.unpivot` to raise the same error class when the `values` argument is an empty list/tuple. ### Why are the changes needed? Currently `DataFrame.unpivot` raises a different error class, `UNPIVOT_REQUIRES_VALUE_COLUMNS` for PySpark vs. `UNPIVOT_VALUE_DATA_TYPE_MISMATCH` for Spark Connect. In `Unpivot`, an empty list/tuple as `values` argument is different from `None`. It should handle them differently. ### Does this PR introduce _any_ user-facing change? `DataFrame.unpivot` on Spark Connect will raise the same error class as PySpark. ### How was this patch tested? Enabled `DataFrameParityTests.test_unpivot_negative`. -- 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]
