szehon-ho opened a new pull request, #52504:
URL: https://github.com/apache/spark/pull/52504
### What changes were proposed in this pull request?
Revert the analysis of default value to include other column names
### Why are the changes needed?
The following query:
CREATE TABLE t (current_timestamp DEFAULT current_timestamp)
fails after https://github.com/apache/spark/pull/50593. This is because ,
to create a default value DSV2 expression, it uses the main analyzer to analyze
the default value. However, default value should not know about other columns
when trying to analyze.
### Does this PR introduce _any_ user-facing change?
Should fix a regression
### How was this patch tested?
Add new unit test in DataSourceV2SQLSuite
### 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: [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]