Skip to content

[CALCITE-4085] Improve nullability support for fields of structured types#2042

Closed
dawidwys wants to merge 2 commits intoapache:masterfrom
dawidwys:improve-nullability
Closed

[CALCITE-4085] Improve nullability support for fields of structured types#2042
dawidwys wants to merge 2 commits intoapache:masterfrom
dawidwys:improve-nullability

Conversation

@dawidwys
Copy link
Copy Markdown
Contributor

This PR tries to improve nullability of records fields when the record itself is nullable,
The PR is split into three commits which in my opinion affect the code base to a different extent. Calcite users should not see a difference in the behaviour, but downstream projects that depend on Calcite can implement a support for not null fields within a nullable record type based on those changes.

@dawidwys dawidwys force-pushed the improve-nullability branch from 3184200 to 98bf85a Compare June 23, 2020 13:59
dawidwys added 2 commits June 25, 2020 09:57
SqlItemOperator

This PR introduces a logic that makes the accesed field nullable if the
accessed row is nullable.
Make the AliasNamespace keep the original nullability & StructKing of
the aliased record.
@dawidwys dawidwys force-pushed the improve-nullability branch from 98bf85a to 949ff81 Compare June 25, 2020 08:09
@dawidwys dawidwys changed the title [CALCITE-4085] Improve nullability support for fields of structured type [CALCITE-4085] Improve nullability support for fields of structured types Jun 25, 2020
@dawidwys
Copy link
Copy Markdown
Contributor Author

Do you mind having a look @danny0405 ?

@rubenada
Copy link
Copy Markdown
Contributor

LGTM

@danny0405 danny0405 added the accepted-and-would-rework-soon This patch is overall ok, but need some refactoring by the committers. label Jul 13, 2020
@danny0405 danny0405 closed this in e2942fe Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted-and-would-rework-soon This patch is overall ok, but need some refactoring by the committers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants