-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Apply guarantee rewriter to sql workflow #10456
Comments
On a second glance, I feel it's difficult. 😥 |
I think this may be another example of what @samuelcolvin was suggesting on #10400 I think we could use ExecutionPlan::statistics to get the guarantee information |
@jayzhan211 |
I think so. |
What does "old version of the guarantee?" refer to? |
|
As I understand it, the usecase for I would personally recommend add code that translates We could discuss reworking how |
This change addresses part of apache#10456.
This change addresses part of apache#10456.
This change addresses part of apache#10456.
This change addresses part of apache#10456.
@dmitrybugakov are you working on #10510? |
@alamb Is it reasonable to evaluate column in I'm thinking of passing |
I don't quite follow what you are proposing here. As I I understand the idea on this ticket, the idea is to add a pass that knows how to use Statistics to simplify expressions by creating a Simplifier, and pass in the min and max values via The challenges I see are:
One potential thing you could do is use |
It seems quite similar to the comments in #10400.
Maybe I should works on other issue 🤔 |
Maybe -- what are you interested in working on? Are you blocked on review of anything? I find it hard to keep up with what you are doing these days 🏃 |
I think #8708 is about 80% complete. I'm exploring the next interesting topic. |
Let me know if you would like help breaking down the work and filing some more follow on tickets (to organize getting some additional community help). Depending on the kind of project you are interested in, here are some ideas (unsolicited) that I would love to help review:
Rock on! |
Improving grouping performance seems interesting! |
I think it would be awesome -- thank you. How would you like to proceed? I personally think either #9403 or #6937 are super valuable For either, I think the key will be to do some sort of POC to make sure we can make performance improve before polishing too much. Looking forward to working with you more |
Is your feature request related to a problem or challenge?
While deprecating
Expr::GetIndexedField
, I found there are many test cases that are not covered in sqllogictest, for example,test_inequalities_non_null_bounded
. Since we hope to replace thefield
API withget_field
. We could either move the test todatafusion/core/tests
or sqllogictest. I prefer the latter, then, I found that guarantee rewrite is not applied to SQL workflow.I expect that
FilterExec
should be removed or converted to something likeFalse
, since the condition here is always false.Describe the solution you'd like
Apply
guarantee_rewriter
to sql workflow.If the simplification logic can be included in
Simplifier
is a plus.Describe alternatives you've considered
No response
Additional context
PR that introduce guarantee rewrite #7467
No response
The text was updated successfully, but these errors were encountered: