Support for connectors with three part identifiers #12957
Praveen2112
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
Should we simply have 2 levels? (database and schema) for each connector? |
Beta Was this translation helpful? Give feedback.
2 replies
-
There's relevant issue #1135 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Some data-sources has support for 3-part identifiers (database.schema.table) for example SqlServer, currently we have 1:1 mapping with a Trino catalog to a specific database. So for each database we need a unique catalog - this comes with a maintenance cost of having too many catalogs, as we add more databases we might need to restart the server and pushdown (like join) might be a bit tricky to implement. The following lists the solutions to tackle this issue -
We could have a PTF which could capture the three part identifier for a given table and resolve to a corresponding
ConnectorTableHandle
. One issue with this approach is that - it is not BI tool friendly like listing down all tables from all the databases.What if we could have multiple catalogs which resolves to a same connector i.e the table name would be in this format
sqlserver_database.schema.table
- the additional part (i.e database) can be captured as part of SPI (It would be backward compatible) objects - this allows to list tables across all the databases.Will be updating other possible solutions.
cc: @trinodb/maintainers
Beta Was this translation helpful? Give feedback.
All reactions