Special identifiers in WHERE clause #25372
-
I am trying to create a custom JDBC connector, and will appreciate any help for solving the following problem. I have the following query:
For some reason I want to avoid modifying the query (for example ChatGPT suggests instead of using where clause to specify Code for my JDBC connector is almost the same as the jdbc-connector-example code in repository with minimal changes. P.s. I'm new to trino, so I appreciate your patience and willingness to help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It’s not clear to me how much flexibility you have in changing the query structure, but you could do:
If you want to keep it in the WHERE clause, you’ll need to make your connector present a virtual column to represent the special field and implement the filter pushdown APIs to make it understand the constraint on that field. |
Beta Was this translation helpful? Give feedback.
It’s not clear to me how much flexibility you have in changing the query structure, but you could do:
If you want to keep it in the WHERE clause, you’ll need to make your connector present a virtual column to represent the special field and implement the filter pushdown APIs to make it understand the constraint on that field.