Skip to content

[native] Handle same type NULLIF argument#20039

Merged
vermapratyush merged 1 commit intoprestodb:masterfrom
vermapratyush:null-if-test-fix
Jul 3, 2023
Merged

[native] Handle same type NULLIF argument#20039
vermapratyush merged 1 commit intoprestodb:masterfrom
vermapratyush:null-if-test-fix

Conversation

@vermapratyush
Copy link
Member

@vermapratyush vermapratyush commented Jul 1, 2023

  • Remove NULLIF implementation from cpp server.
  • Add support for handling same type arguments in NULLIF coordinator code.
  • Prestissimo cluster need to pass the config native-execution-enabled in the coordinator to trigger the correct branch in the code.
== NO RELEASE NOTE ==

@vermapratyush vermapratyush marked this pull request as ready for review July 1, 2023 06:25
@vermapratyush vermapratyush requested review from a team as code owners July 1, 2023 06:25
@vermapratyush vermapratyush requested a review from presto-oss July 1, 2023 06:25
@vermapratyush vermapratyush force-pushed the null-if-test-fix branch 2 times, most recently from 969b917 to 32f5f26 Compare July 1, 2023 06:58
Copy link
Contributor

Choose a reason for hiding this comment

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

For presto native, coordinator does not know about the worker type. Hence this branch won't be executed for Presto and test fails. How does isNative work here and shall we need to make Presto coordinator recognize worker type? CC: @pranjalssh @mbasmanova

@vermapratyush vermapratyush force-pushed the null-if-test-fix branch 4 times, most recently from 310a73d to e3aaeff Compare July 2, 2023 00:48
@vermapratyush vermapratyush changed the title [native] Handle same type NULLIF argument and Advance Velox [native] Handle same type NULLIF argument Jul 2, 2023
Copy link
Contributor

@mbasmanova mbasmanova left a comment

Choose a reason for hiding this comment

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

@vermapratyush I don't think this is a good solution. I suggest to revisit #19301 and enhance it to add casts as needed.

@vermapratyush vermapratyush force-pushed the null-if-test-fix branch 2 times, most recently from 12fd11a to d30d161 Compare July 3, 2023 15:43
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you remove this query? Is this accidental?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not removed, just moved around. It is the last line in the unit test
This was extracted out into a different unit test: 1d331e0

Add support for NULLIF implementation for arguments with same type.
Add native-execution-enabled to prestissimo query runner
@vermapratyush vermapratyush merged commit 18e047b into prestodb:master Jul 3, 2023
@vermapratyush vermapratyush deleted the null-if-test-fix branch July 3, 2023 22:20
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.

3 participants