Repository navigation
fix(spark): preserve compilation with newer toPrettySQL signatures - #1419
alexandrefimov wants to merge 1 commit into
Conversation
Spark 4.1 and 4.2 add an optional argument to toPrettySQL. Passing its method reference to map no longer matches the expected unary function. Call it through a lambda so the default argument is applied.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
Spark 4.1 and 4.2 add an optional argument to toPrettySQL. Passing the method directly to map no longer matches the expected unary function. Use an explicit lambda so the default argument is applied.
Validated with Spark 3.5.9, 4.0.4, 4.1.3 and 4.2.0 using the runtime-profile harness: 108 schema cases in both ANSI modes, plus decimal and overflow controls.