zhengruifeng opened a new pull request, #58280: URL: https://github.com/apache/spark/pull/58280
### What changes were proposed in this pull request? This PR adds direct regression coverage for dependent columns in `DataFrame.withColumns`. The JVM test exercises the internal `withColumns(Seq[String], Seq[Column])` overload. The PySpark test covers a multi-level dependency graph in both classic and Connect parity suites, plus a negative forward-reference case where the later column is otherwise valid. ### Why are the changes needed? Dependent columns currently work through lateral column alias resolution, but `withColumns` had no direct test guarding this behavior or its ordering constraint. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? - `./build/sbt` targeted `DataFrameSuite` test - Classic PySpark targeted `DataFrameTests.test_with_columns_with_dependencies` - Spark Connect targeted `DataFrameParityTests.test_with_columns_with_dependencies` ### 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]
