Skip to content
This repository was archived by the owner on Aug 20, 2024. It is now read-only.

Adding support to shared tables#5

Open
joaopamaral wants to merge 16 commits into
monad-inc:mainfrom
Automattic:including_db_in_discover
Open

Adding support to shared tables#5
joaopamaral wants to merge 16 commits into
monad-inc:mainfrom
Automattic:including_db_in_discover

Conversation

@joaopamaral

Copy link
Copy Markdown

The Redshift extractor works by first discovering what tables and views are available to sync. This is done by querying information_schema to get table names, columns, etc. However, metadata on shared table views are not available so the extractor fails. Additionally, shared database is set up in its own database on Redshift and we cannot connect to it directly.

Cannot connect to shared database "...". Connect to the databases in your cluster instead and use cross-database query notation .

So in this PR we are replacing the INFORMATION_SCHEMA.Tables by SVV_ALL_TABLES and replacing INFORMATION_SCHEMA.Columns by SVV_ALL_COLUMNS that shows shared tables information.

The only limitation that we still have is that we still didn't get the table constraints/PKs for shared tables.

@joaopamaral joaopamaral closed this Jan 6, 2023
@joaopamaral joaopamaral reopened this Jan 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant