Skip to content

[CALCITE-3627] New Row Null Policy #2667

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

Merged

Conversation

talatuyarer
Copy link

As describe under CALCITE-3627 ticket. Current row policy is wrong. When ROW has a null column. Calcite returns null for ROW value. I am working on Apache Beam SQL Row support. Because of ANY policy RexToLixTranslator generate wrong code. This is my first pr for calcite project. Thanks for your comments in advance.

I recreated my pr because old pr did not puck up updated code.

@DonnyZone could you re-review ? I updated my pr after your RexNode-to-Expression CodeGen Implementation.

Thanks

@talatuyarer
Copy link
Author

talatuyarer commented Dec 30, 2021

Finally I created a clean pr. @DonnyZone I look forward your comments. So sorry to create multiple PRs

@DonnyZone
Copy link
Contributor

Some tests in PigRelOpTest fail.

@talatuyarer
Copy link
Author

Some tests in PigRelOpTest fail.

@DonnyZone previous Calcite does not support ROW nullability. so for those failing tests row is null but it returns full row rather than null value for row. I changed tests' expected output with right one. Please let me know if you see any issue

@DonnyZone
Copy link
Contributor

LGTM!
@talatuyarer Could you squash the commits and update the commit message as the format described in guideline?

@DonnyZone DonnyZone added the LGTM-will-merge-soon Overall PR looks OK. Only minor things left. label Dec 30, 2021
@talatuyarer
Copy link
Author

@DonnyZone I believe I squashed my commits. Please let me know if you need anything from me.

@DonnyZone
Copy link
Contributor

DonnyZone commented Jan 4, 2022

@DonnyZone I believe I squashed my commits. Please let me know if you need anything from me.

Sorry for the inconvenience, could you squash your 5 commits into one, i.e., "[CALCITE-3627] Incorrect null semantic for ROW function"? So that I can merge this PR quickly through Github web UI.

@talatuyarer talatuyarer force-pushed the CALCITE-3627-new-row-nullpolicy branch from dd6e72d to 008a33d Compare January 4, 2022 02:38
@talatuyarer
Copy link
Author

Ok it is done. Now I see only one commit @DonnyZone

@DonnyZone
Copy link
Contributor

Hi @talatuyarer, sorry for trouble you again. The ticket number in commit message should be [CALCITE-3627].

@talatuyarer talatuyarer force-pushed the CALCITE-3627-new-row-nullpolicy branch from 008a33d to ba74249 Compare January 4, 2022 16:42
@talatuyarer
Copy link
Author

@DonnyZone it is done I did not realized too 😂

@DonnyZone DonnyZone merged commit 8d21c3f into apache:master Jan 5, 2022
@talatuyarer
Copy link
Author

Thank you @DonnyZone for reviewing and merging 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LGTM-will-merge-soon Overall PR looks OK. Only minor things left.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants