Push down NOT, IS NULL, NOT IS NULL in PostgreSQL connector#11514
Push down NOT, IS NULL, NOT IS NULL in PostgreSQL connector#11514findepi merged 2 commits intotrinodb:masterfrom
Conversation
plugin/trino-base-jdbc/src/main/java/io/trino/plugin/jdbc/expression/TypePattern.java
Outdated
Show resolved
Hide resolved
5c9367b to
c0bcdf7
Compare
|
@findepi done |
findepi
left a comment
There was a problem hiding this comment.
"Translate NOT, IS NULL, NOT IS NULL to connector expression(s)"
core/trino-main/src/main/java/io/trino/sql/planner/ConnectorExpressionTranslator.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/main/java/io/trino/sql/planner/ConnectorExpressionTranslator.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/main/java/io/trino/sql/planner/ConnectorExpressionTranslator.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/main/java/io/trino/sql/planner/ConnectorExpressionTranslator.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/test/java/io/trino/sql/planner/BenchmarkPlanner.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/main/java/io/trino/sql/planner/ConnectorExpressionTranslator.java
Outdated
Show resolved
Hide resolved
b3eea04 to
74a07e5
Compare
core/trino-main/src/main/java/io/trino/sql/planner/ConnectorExpressionTranslator.java
Outdated
Show resolved
Hide resolved
plugin/trino-postgresql/src/test/java/io/trino/plugin/postgresql/TestPostgreSqlClient.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Let's also test with a column that actually contains NULLs.
There was a problem hiding this comment.
Also IS NULL is possible to represent as a TupleDomain (none) so should we add an OR to ensure expression pushdown path?
c03af14 to
2f7bf47
Compare
findepi
left a comment
There was a problem hiding this comment.
"Translate NOT, IS NULL, NOT IS NULL to connector expression(s)"
findepi
left a comment
There was a problem hiding this comment.
"Implement NOT, IS NULL, NOT IS NULL pushdown in PostgreSQL connector"
There was a problem hiding this comment.
NOT (a OR b) can be replaced with (NOT a) AND (NOT b).
The test still would test what it tests, but having NOT around LIKE only would make it simpler.
Please change.
|
LGTM % comments. |
2f7bf47 to
3a20817
Compare
|
(applied myself) |
Description
Improvement.
Core query engine & PostgreSQL connector.
Enables pushdown of
NOTexpression andIS NULL,NOT IS NULLpredicates in PostgreSQL connectorRelated issues, pull requests, and links
#9506
Documentation
(x) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.
Release notes
( ) No release notes entries required.
(x) Release notes entries required with the following suggested text: