jinkachy opened a new pull request, #50207: URL: https://github.com/apache/spark/pull/50207
### What changes were proposed in this pull request? This PR improves the readability of the JDBC truncate table condition check by clarifying the logic flow in the code. The commit rewrites the condition to make it clearer that truncation only occurs when both `isTruncate` is true and the database is confirmed not to cascade truncate. ### Why are the changes needed? The original condition was slightly difficult to follow at first glance. This readability improvement makes the code easier to understand and maintain, especially for new contributors. It more explicitly shows the intent of the logic without changing any functional behavior. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing tests cover this functionality, and since this is purely a readability improvement with no functional changes, no additional tests were needed. ### 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org