dongjoon-hyun commented on PR #60637: URL: https://github.com/apache/spark/pull/60637#issuecomment-6965423333
For the decision challenge on the DDL check and the `ALTER TABLE` validation, I chose the first answer in this PR. The `failIfSessionDependent` Scaladoc and the SPARK-61893 migration entry now describe a comparison of how the parser reads the text, with ANSI mode from the session. They also say that a write that reads the text can still analyze an accepted condition differently or fail to resolve it. The cases in the second and third answers end in an explicit error, or in an `ALTER TABLE` validation that is stricter than the writes; no violating row is stored silently. Analyzing the condition under the fixed settings at DDL time would make DDLs in sessions with ANSI mode off fail, and it would change the validation path of `ALTER TABLE`, so I'd like to keep it out of this correctness fix. -- 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]
