-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Improve Clickhouse varchar equalities pushdown #23455
Improve Clickhouse varchar equalities pushdown #23455
Conversation
plugin/trino-clickhouse/src/main/java/io/trino/plugin/clickhouse/ClickHouseClient.java
Show resolved
Hide resolved
plugin/trino-clickhouse/src/main/java/io/trino/plugin/clickhouse/ClickHouseClient.java
Outdated
Show resolved
Hide resolved
plugin/trino-clickhouse/src/main/java/io/trino/plugin/clickhouse/ClickHouseClient.java
Show resolved
Hide resolved
2870fa9
to
660766a
Compare
@Praveen2112 please approve. |
plugin/trino-base-jdbc/src/main/java/io/trino/plugin/jdbc/expression/RewriteIn.java
Outdated
Show resolved
Hide resolved
660766a
to
8ebe081
Compare
All comments are addressed. Please approve. |
8ebe081
to
6715345
Compare
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.
I need to verify if tests are using connector expression pushdown or tuple domain.
...n/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/TestClickHouseConnectorTest.java
Outdated
Show resolved
Hide resolved
plugin/trino-clickhouse/src/main/java/io/trino/plugin/clickhouse/ClickHouseClient.java
Show resolved
Hide resolved
...n/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/TestClickHouseConnectorTest.java
Outdated
Show resolved
Hide resolved
...n/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/TestClickHouseConnectorTest.java
Show resolved
Hide resolved
...n/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/TestClickHouseConnectorTest.java
Show resolved
Hide resolved
also I see clickhouse connector can both expose So do we need to test in both modes the pushdown? Does it matter? |
I guess for simple expression we use TupleDomain and for expression with OR it would use connector expression |
6715345
to
99b9636
Compare
@@ -14,6 +14,7 @@ | |||
package io.trino.plugin.jdbc.expression; | |||
|
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.
also I see clickhouse connector can both expose
FixedString/String
as TrinoVARCHAR
andVARBINARY
(default).So do we need to test in both modes the pushdown? Does it matter?
@hashhar @Praveen2112 considering
// TODO (#7102) reconsider default behavior
Support for VARBINARY
may be considered as a separate effort.
99b9636
to
7cd3dbb
Compare
@hashhar @Praveen2112 All comments addressed. Please approve. |
7cd3dbb
to
dc5a204
Compare
Predicate pushdown - equals - in - like - is null - null if
dc5a204
to
f1a8cf4
Compare
Closing as it has partially transformed to #23558 |
Connector expressions
Description
Additional context and related issues
Release notes
( ) This is not user-visible or is docs only, and no release notes are required.
(x) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text: