-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
API: StructProjection returns a null Projection object when the nested struct is null #7507
Comments
if we have a schema like this
when the nested location struct is null
the StructProjection or Flink RowDataProjection would create a projection object wrapping a null struct value. I was proposing that it should just return a null projection object directly. |
before: |
then the Projection class doesn't have to deal with null wrapped value. e.g.
it also mirroring the original struct more faithfully.
|
This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible. |
This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale' |
@stevenzwu does this still apply? If so, then we should re-open and add the |
Today, if the nested struct is null,
StructProjection
returns a nestedStructProjection
object wraps the null struct value. It is probably simpler if a null projection object is returned instead. Then the projection classes like (StructProjection
or FlinkRowDataProjection
) don't need to handle null wrapped struct.See more context in #7493 (comment).
@rdblue @aokolnychyi @RussellSpitzer @Reo-LEI
The text was updated successfully, but these errors were encountered: