Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make nested type returned by coalesce UDF all nullable#232

Merged
ljfgem merged 1 commit intolinkedin:masterfrom
rzhang10:fix_coalesce_udf_nested_type_nullablility
Feb 17, 2022
Merged

Make nested type returned by coalesce UDF all nullable#232
ljfgem merged 1 commit intolinkedin:masterfrom
rzhang10:fix_coalesce_udf_nested_type_nullablility

Conversation

@rzhang10
Copy link
Member

@rzhang10 rzhang10 commented Feb 15, 2022

We should return all nested type as nullable since Hive types are all nullable by default.

We should also enhance the unit tests to do equality check using getFullTypeString, which includes the information of nullability of the type.

@rzhang10 rzhang10 requested a review from autumnust February 15, 2022 08:17
@ljfgem
Copy link
Collaborator

ljfgem commented Feb 15, 2022

Thanks @rzhang10! Kicked off the i-tests.
I am wondering why we don't need to modify some existing tests in Coral-Schema. If there is no corresponding test in Coral-Schema, could you please add one?

@rzhang10
Copy link
Member Author

Thanks @rzhang10! Kicked off the i-tests. I am wondering why we don't need to modify some existing tests in Coral-Schema. If there is no corresponding test in Coral-Schema, could you please add one?

I agree that in coral-schema we haven't got such a test case, but I think the tests in CoalesceStructUtilityTest can already suffice to ensure we get a correct IR, thus making coral-schema also correct. LMKWYT?

Copy link
Collaborator

@ljfgem ljfgem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i-test and test on Spark shell passed
Thanks @rzhang10 !

@ljfgem ljfgem merged commit c4d1ebb into linkedin:master Feb 17, 2022
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

Successfully merging this pull request may close these issues.

2 participants