szehon-ho opened a new pull request, #60407: URL: https://github.com/apache/spark/pull/60407
### What changes were proposed in this pull request? Build the input DataFrame and expected Rows from the same in-memory tuples in `WriteDistributionAndOrderingSuite`. ### Why are the changes needed? Passing an expected DataFrame to `checkAnswer` collects it for every batch-write variant. Use `data.map(Row.fromTuple)` to avoid those extra executions. The skewed input retains its three partitions, and the actual table still goes through the existing `checkAnswer` result and RDD deserialization checks. All test cases and configuration combinations remain. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? `build/sbt "sql/testOnly org.apache.spark.sql.connector.WriteDistributionAndOrderingSuite"` 99 tests passed; no failures or skipped tests. `build/sbt "sql/Test/scalastyle"` passed with zero errors and warnings. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: OpenAI Codex (GPT-5) -- 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]
