-
Notifications
You must be signed in to change notification settings - Fork 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
LIKE predicate pushdown #1580
Comments
@infearOnTheWay I agree that this is an important thing to be able to push down LIKE (or selected function calls in general)
This makes the idea much harder to implement properly. |
@findepi Thanks for your reply. |
@infearOnTheWay But how do we generate |
@Praveen2112 |
@infearOnTheWay IIRC So for this |
@Praveen2112 Yes, you are right. I made a mistake about the push down conditions.As you said, it is not being pushed only it is on a different column. |
Another option, that we already are using for varchar predicate pushdown in to pushdown the predicate and keep the predicate on Trino side. So for predicate like 'x LIKE 'prefix%'
Such change could be implemented as optimizer rule without changing |
@kokosing this is already implemented. |
I don't see this happening. I was testing JDBC connector (PostgreSQL) and I see that @findepi Do you refer Hive connector and filtering partitions with |
@kokosing See |
full LIKE pushdown was added for PostgreSQL in #11045 |
'Like' predicate has been supported in presto.But it seems that 'Like' can't push down to the data source as far as I know. Since the 'ValueSet' only contains 'EquatableValueSet','SortedRangeSet' and 'AllOrNoneValueSet' implementation now.
In our case, 'Like' predicate would have better performance in our data source query process.So we implement 'LikeValuableSet' and push down to our data source.It realy works well as expected.
In our opinion,it seems to be a general demand and useful supplement in current presto. May be we can do some detailed discussion on this topic.
Thanks.
The text was updated successfully, but these errors were encountered: