-
Notifications
You must be signed in to change notification settings - Fork 328
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
Nothing
columns in DB backends
#11757
Comments
Check behaviour of |
It seems that there is no good way to have a NULL type column in Postgres. Creating such column in After a discussion we decided that it just doesn't make sense to try creating some weird construction to get Null column type to work in DB. The only real issue with it is that expressions that have |
In Postgres:
|
Exception is SQLite which cares little about types so it seems to make sense to have a |
Radosław Waśko reports a new STANDUP for yesterday (2025-01-22): Progress: Updated tests in the upstream PR according to the discussion. Created a draft for the single-value column intersection type. Debugging interpreter crashes, got it resolved with Jaroslav's help. It should be finished by 2025-01-22. Next Day: Next day I will be working on the #12095 task. Prepare PR for the intersection type. |
Most DB backends do not allow to create a table with a column that has
NULL
column type. So we disallowValue_Type.Null
inselect_into_database_table
.However, we should make it possible to use
Nothing
in expressions, and perhaps create an all-nothing column. Just some cautious usage of the value-types needs to be done so that we can use theNull
type in the temporary column but don't do anything invalid likeCAST(x as NULL)
.There are existing
Expression_Spec
tests that just need to be enabled to test this.The text was updated successfully, but these errors were encountered: