Skip to content

Convert if.Eval result to correct type #3025

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
merged 2 commits into from
Jun 11, 2025
Merged

Convert if.Eval result to correct type #3025

merged 2 commits into from
Jun 11, 2025

Conversation

angelamayxie
Copy link
Contributor

@angelamayxie angelamayxie commented Jun 11, 2025

if.Eval().Type() should evaluate to if.Type(), instead of whatever type the chosen subexpression is.

https://dev.mysql.com/doc/refman/8.4/en/flow-control-functions.html#function_if

Fixes dolthub/dolt#9320

@angelamayxie angelamayxie requested a review from jycor June 11, 2025 22:12
Copy link
Contributor

@jycor jycor left a comment

Choose a reason for hiding this comment

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

LGTM

@angelamayxie angelamayxie merged commit cb66eeb into main Jun 11, 2025
8 checks passed
@angelamayxie angelamayxie deleted the angela/groupby branch June 11, 2025 23:12
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.

Group-By with IF function fails to distinguish the integer "1" and the boolean value "true"
2 participants