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

DRILL-7739: Allow implicit casts from required to nullable data type #2080

Closed
wants to merge 1 commit into from

Conversation

vvysotskyi
Copy link
Member

DRILL-7739: Allow implicit casts from required to nullable data type

Description

Added code to insert a cast of function argument to nullable type for the case when requiring nullable one, but required is provided.

Documentation

NA

Testing

Reran all unit tests.

matchedFuncHolder.getNullHandling() == FunctionTemplate.NullHandling.NULL_IF_NULL) ||
matchedFuncHolder.isFieldReader(i)) {
if (paramType.getMode() == DataMode.OPTIONAL
Copy link

Choose a reason for hiding this comment

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

This could be refactored to separate function. Same construct down below.

Copy link

@sanel sanel left a comment

Choose a reason for hiding this comment

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

Aside from that small refactoring, rest looks good to me.

@vvysotskyi
Copy link
Member Author

@sanel, thanks for the review, I have made requested changes, please take a look.

@sanel
Copy link

sanel commented May 24, 2020

All good! Thanks @vvysotskyi

@asfgit asfgit closed this in 64b40be May 25, 2020
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.

None yet

2 participants