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

Like, NotLike expressions work with literal NULL #2626

Closed
Tracked by #2483
WinkerDu opened this issue May 26, 2022 · 0 comments · Fixed by #2627
Closed
Tracked by #2483

Like, NotLike expressions work with literal NULL #2626

WinkerDu opened this issue May 26, 2022 · 0 comments · Fixed by #2627
Labels
enhancement New feature or request

Comments

@WinkerDu
Copy link
Contributor

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
like, not like expressions doesn't work well with literal NULL in DF.

To Reproduce

> SELECT column1 like NULL from (values('a'), ('b'), (NULL)) as t
Plan("'Utf8 LIKE Null' can't be evaluated because there isn't a common type to coerce the types to")

Postgres works like

# SELECT column1 like NULL from (values('a'), ('b'), (NULL)) as t;
 ?column? 
----------
 
 
 
(3 rows)

Describe the solution you'd like

  • Introduces null_coercion to like_coercion
  • Enhances compute_utf8_op_scalar to produce null array when scalar value NULL inputs.

Describe alternatives you've considered
No.

Additional context
No.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant