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

Fix ExpressionPredicateIndexSupplier numeric replace-with-default behavior. #16448

Merged
merged 3 commits into from
May 15, 2024

Conversation

gianm
Copy link
Contributor

@gianm gianm commented May 14, 2024

In replace-with-default mode, null numeric values from the index should be interpreted as zeroes by expressions. This makes the index supplier more consistent with the behavior of the selectors created by the expression virtual column.

…avior.

In replace-with-default mode, null numeric values from the index should be
interpreted as zeroes by expressions. This makes the index supplier more
consistent with the behavior of the selectors created by the expression
virtual column.
@gianm gianm closed this May 14, 2024
@gianm gianm reopened this May 14, 2024
@gianm
Copy link
Contributor Author

gianm commented May 14, 2024

The 4 failures are due to code coverage in SQL-compatible mode. I think we should ignore these, because the relevant new code is only used in the non-SQL-compatible code path.

@cryptoe cryptoe added this to the 30.0.0 milestone May 15, 2024
@cryptoe cryptoe merged commit 0fb0944 into apache:master May 15, 2024
82 of 87 checks passed
adarshsanjeev pushed a commit to adarshsanjeev/druid that referenced this pull request May 15, 2024
…avior. (apache#16448)

* Fix ExpressionPredicateIndexSupplier numeric replace-with-default behavior.

In replace-with-default mode, null numeric values from the index should be
interpreted as zeroes by expressions. This makes the index supplier more
consistent with the behavior of the selectors created by the expression
virtual column.

* Fix test case.
adarshsanjeev added a commit that referenced this pull request May 16, 2024
…avior. (#16448) (#16454)

* Fix ExpressionPredicateIndexSupplier numeric replace-with-default behavior.

In replace-with-default mode, null numeric values from the index should be
interpreted as zeroes by expressions. This makes the index supplier more
consistent with the behavior of the selectors created by the expression
virtual column.

* Fix test case.

Co-authored-by: Gian Merlino <gianmerlino@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants