-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
db-doc failing with Snowflake #3622
Comments
Note that if GetViewDefinitionStatement had a
which doesn't show the |
I confirmed that a Materialized View is breaking I traced the SQL to something like: select view_definition from information_schema.views
where table_name=? and table_schema=? and table_catalog=? In the case of a Materialized View, the result set has 0 rows. It appears that Snowflake does not list Materialized views in An alternative solution is to use the select GET_DDL('view', 'CATALOG.SCHEMA.VIEW_NAME', true) as view_definition It basically gives the expected result except that the |
Another alternative is to use show views like 'VIEW_NAME' in schema CATALOG.SCHEMA This returns a result set with a bunch of columns. The |
Another workaround is to query select view_definition from SNOWFLAKE.ACCOUNT_USAGE.VIEWS
where table_name='VIEW_NAME' and table_schema='SCHEMA' and table_catalog='CATALOG' and DELETED is null I like this option the least because:
|
Hello! Thanks for the detailed report! I see that you have some insight on the matter, do you minde submiting a PR with a possible fix? It would help speeding up the process . Let us now. Thanks! |
I'm open to submitting a PR, but I am honestly unclear as to how to best resolve this. I feel like the discrepancy from Snowflake is unexpected, but I doubt that they will resolve it anytime soon. 🤔 |
Hello! I think that PR #3794 that is present on 4.21.1 may have fixed it.. could you give it a try? |
This issue got stale, closing it for now, feel free to re-open if needed |
Environment
Liquibase Version: 4.18.0
Liquibase Integration & Version: GitHub Actions
Liquibase Extension(s) & Version: n/a
Database Vendor & Version: Snowflake
Operating System Type & Version: Linux
Infrastructure Type/Provider: GitHub Actions
Description
Trying to use the db-doc action to generate database documentation against a Snowflake database. Alas, I get this error instead:
The full stack trace is:
Steps To Reproduce
To reproduce, add a step like this to a Github Workflow:
Additional Context
My Snowflake database does have some Views and Materialized Views defined. I am unclear if there is a specific object that is breaking this process.
The text was updated successfully, but these errors were encountered: