vladanvasi-db commented on PR #60171: URL: https://github.com/apache/spark/pull/60171#issuecomment-6742691090
@uros-b Addressed in 768822fe9ae. Both helpers now take `conf: => SQLConf`, and neither extends `SQLConfHelper`. The insertion helper forwards the deferred configuration through partition validation, static partition projection, and static delete construction. One receiver detail matters for keeping this refactor-only: both original inner rules inherit `conf` from `Rule` (`ResolveInsertInto` through `ResolveInsertionBase`), so their bodies read the rule's active configuration. The separate outer `validateStoreAssignmentPolicy()` reads `Analyzer.conf`. The call sites pass each inner rule's unqualified `conf`, preserving that existing distinction and evaluation timing. The tests now distinguish those paths: - Renamed the existing LEGACY-policy test to clarify that it covers outer validation. - Added a Long-to-Int write with outer STRICT and active ANSI; it reaches `TableOutputResolver` and verifies the ANSI assignment cast. - Added a direct-helper test with supplied STRICT and active ANSI that checks the exact `CANNOT_SAFELY_CAST` error. - Added STATIC/DYNAMIC insertion cases with conflicting outer configuration and case sensitivity, plus direct-helper comparisons with conflicting active settings. The rule-receiver cases passed before changing the helper implementation and after the change. Validation: all 512 Catalyst tests across 10 suites, 101 PlanResolutionSuite tests, and Catalyst production/test Scala style checks passed. Two independent reviews found no behavioral changes. -- 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]
