We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@drewbanin has something partially working for this
The text was updated successfully, but these errors were encountered:
This is a one-off function from a little bit of experimentation I did recently.
# adapters/bigquery/impl.py @classmethod def get_catalog(cls, profile, project_cfg, manifest): # schemas = cls.get_existing_schemas(profile, project_cfg) schemas = list({node.to_dict()['schema'] for node in manifest.nodes.values()}) columns = [] for j, schema_name in enumerate(schemas): relations = cls.list_relations(profile, project_cfg, schema_name) for i, relation in enumerate(relations): cols = cls.get_columns_in_table(profile, project_cfg, schema_name, relation.name) for col_index, col in enumerate(cols): columns.append({ "table_schema": relation.schema, "table_name": relation.name, "table_type": relation.type, "table_comment": None, "column_name": col.name, "column_index": col_index, "column_type": col.data_type, "column_comment": None }) return dbt.clients.agate_helper.table_from_data(columns)
Sorry, something went wrong.
Bigquery catalog generation (#830) (#857)
e5bc9c0
Added in #857, closing
beckjake
No branches or pull requests
@drewbanin has something partially working for this
The text was updated successfully, but these errors were encountered: