Skip to content
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

Conversation

ssheikin
Copy link
Contributor

@ssheikin ssheikin commented Sep 17, 2024

Connector expressions

  • equals
  • in
  • like
  • is null
  • null if

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:

# Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Sep 17, 2024
@ssheikin ssheikin force-pushed the ssheikin/55/trino/clickhouse-pushdown-predicate-equalities branch 3 times, most recently from 2870fa9 to 660766a Compare September 17, 2024 10:37
@ssheikin
Copy link
Contributor Author

@Praveen2112 please approve.

@ssheikin ssheikin force-pushed the ssheikin/55/trino/clickhouse-pushdown-predicate-equalities branch from 660766a to 8ebe081 Compare September 17, 2024 10:41
@ssheikin
Copy link
Contributor Author

All comments are addressed. Please approve.

@ssheikin ssheikin force-pushed the ssheikin/55/trino/clickhouse-pushdown-predicate-equalities branch from 8ebe081 to 6715345 Compare September 17, 2024 10:49
Copy link
Member

@hashhar hashhar left a 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.

@hashhar
Copy link
Member

hashhar commented Sep 17, 2024

also I see clickhouse connector can both expose FixedString/String as Trino VARCHAR and VARBINARY (default).

So do we need to test in both modes the pushdown? Does it matter?

@Praveen2112
Copy link
Member

connector expression pushdown or tuple domain

I guess for simple expression we use TupleDomain and for expression with OR it would use connector expression

@@ -14,6 +14,7 @@
package io.trino.plugin.jdbc.expression;

Copy link
Contributor Author

@ssheikin ssheikin Sep 18, 2024

Choose a reason for hiding this comment

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

#23455 (comment)

also I see clickhouse connector can both expose FixedString/String as Trino VARCHAR and VARBINARY (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.

@ssheikin ssheikin force-pushed the ssheikin/55/trino/clickhouse-pushdown-predicate-equalities branch from 99b9636 to 7cd3dbb Compare September 20, 2024 12:19
@ssheikin
Copy link
Contributor Author

ssheikin commented Sep 20, 2024

@hashhar @Praveen2112 All comments addressed. Please approve.

@ssheikin ssheikin force-pushed the ssheikin/55/trino/clickhouse-pushdown-predicate-equalities branch from 7cd3dbb to dc5a204 Compare September 20, 2024 20:30
@ssheikin ssheikin force-pushed the ssheikin/55/trino/clickhouse-pushdown-predicate-equalities branch from dc5a204 to f1a8cf4 Compare September 21, 2024 15:09
@ebyhr ebyhr removed their request for review September 24, 2024 05:51
@ssheikin
Copy link
Contributor Author

Closing as it has partially transformed to #23558

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants