szehon-ho commented on PR #60368: URL: https://github.com/apache/spark/pull/60368#issuecomment-6842165023
Thanks for the detailed review, @dongjoon-hyun. I addressed [5]-[13] in 2befeffe91a and replied to each thread. Could you please take another look? The fixes include: - Run analysis under fixed ANSI settings, then check the plan under the session's representation settings to support first-class CHAR/VARCHAR. - Construct cached modeled expressions under fixed settings so FLOOR/CEIL overflow behavior is independent of the writer's ANSI and legacy flags. - Normalize public string, decimal and date literals, and retain legacy SQL fallback when the modern getter supplies only a model. - Correct the Spark 4.3 migration history, share the analysis helpers, replace the Boolean config overload, consolidate catalog fixtures using `TableInfo.Builder`, and align the WIDTH_BUCKET guard with its siblings. During self-review I also found and fixed an additional case: a literal whose value is incompatible with its declared type could still throw during conversion and bypass valid SQL fallback. Literal conversion now returns `None` in that case; without SQL, the error identifies the generated column. Errors after successful conversion still fail the write. Added regressions for both auto-fill and explicit validation, plus generated CHAR/VARCHAR round trips. All 562 tests passed locally: 160 generated-column tests, 394 DSv2 write-analysis tests and 8 converter tests. Catalyst production/test and SQL test Scalastyle also passed. -- 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]
