-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Doc: remove the statement of SET NOT NULL from the spark-ddl doc, it is not supported.
#5007
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@zhongyujiang, it sounds like this is a regression, not a documentation problem do you know what the issue is? @szehon-ho, any ideas? |
|
@rdblue I think it's just a doc bug, iceberg/spark/v3.2/spark/src/test/java/org/apache/iceberg/spark/sql/TestAlterTable.java Lines 203 to 217 in bb18f18
|
|
I see. The problem is that there isn't a way to override the check from SQL. Iceberg does allow you to make incompatible changes if you decide to "force" the change. But the SQL API doesn't have a way to do that an will always fail. Looks like Postgres supports this by immediately checking the table to see if there are any null values. We should be able to use a metadata check to do the same, assuming that the column's metadata collection is not set to |
|
Yea, that sounds like a cool feature to have |
|
+1 Sounds like a cool feature! |
578f211 to
70ae31d
Compare
|
Hey @szehon-ho @rdblue, could you please help review this when you have time? Thanks. (I've seen users misled by this) |
This is cool and I'd like to give a try on this. |
|
Close this as the doc has been fixed by another PR. |
No description provided.