-
Notifications
You must be signed in to change notification settings - Fork 51
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
fix: Make all array kinds nillable #2534
Changes from 1 commit
8a71b16
2690568
d1737e0
8a83889
d9953a9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,7 +154,11 @@ func (k ScalarArrayKind) Underlying() string { | |
} | ||
|
||
func (k ScalarArrayKind) IsNillable() bool { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. todo: Please add some integration tests that fail before the production code is fixed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm actually not sure how the tests did not fail before. I'm still investigating, but I believe its because of encoding / decoding of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've added a unit test, but I don't think an integration test can actually catch this problem due to the encoding I mentioned above. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I think that might be another bug, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
return k == FieldKind_NILLABLE_BOOL_ARRAY || | ||
return k == FieldKind_BOOL_ARRAY || | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. todo: This could be simplified to |
||
k == FieldKind_INT_ARRAY || | ||
k == FieldKind_FLOAT_ARRAY || | ||
k == FieldKind_STRING_ARRAY || | ||
k == FieldKind_NILLABLE_BOOL_ARRAY || | ||
k == FieldKind_NILLABLE_INT_ARRAY || | ||
k == FieldKind_NILLABLE_FLOAT_ARRAY || | ||
k == FieldKind_NILLABLE_STRING_ARRAY | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo: This should be changed to
and similarly for the other array types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice spot :)