Skip to content
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

NOT NULL on type other than ARRAY is not respected by fdb-relational #3068

Open
g31pranjal opened this issue Jan 28, 2025 · 0 comments
Open

Comments

@g31pranjal
Copy link
Member

While creating a table or struct, declaring a column type as NOT NULL is not honoured by the system since the nullability information gets lost in converting Relational DataType -> Record Layer Type -> Record Metadata.

ARRAY type is an exception to this as the nullability of Array is strictly defined by means of the NullableArrayWrapper - which is preserved in the RecordMetadata and its existence is indicative of Array's nullability.

Long Term: We need a solution to specify nullability.
Short Term: We should explicitly not allow defining a table with a NOT NULL non-array column.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant