-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
add cast
support inside values
#3447
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3447 +/- ##
==========================================
- Coverage 85.69% 85.69% -0.01%
==========================================
Files 298 298
Lines 54644 54658 +14
==========================================
+ Hits 46826 46837 +11
- Misses 7818 7821 +3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good @kmitchener 👍 thank you
Looking at this code, I wonder why there are special cases for Expr values at all in the sql planner. It seems like this is a special case of expression coercion (aka we are trying to coerce / cast all arguments to the same type).
Hmm, do you mean that maybe we can set some rules about which exprs are valid and use those to filter the input to values() rather than explicitly listing which expressions are valid? It does seem like there should be a better way to do this, because values() can take most (any?) expression that's not aggregate, like substring or case or even try_cast for that matter .. maybe a follow-on issue for that? that's beyond me at the moment. |
Benchmark runs are scheduled for baseline = c5c1dae and contender = 3e56a0f. 3e56a0f is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
Yes, exactly this.
I will do so |
Which issue does this PR close?
Closes #3446 .
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?