Skip to content
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

Add DBT Semantic File Merging #132

Merged
merged 17 commits into from
Aug 26, 2024
Merged

Conversation

sfc-gh-jsummer
Copy link
Collaborator

Add support to upload DBT semantic file(s) to merge into generated semantic file for Cortex Analyst. User receives a dialog box to configure merge specifics and further refine in existing semantic file workflow.

Out of an abundance of caution, I have not rebased given the frequency of changes occurring in the repo.

Copy link
Collaborator

@sfc-gh-cnivera sfc-gh-cnivera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM - it looks like the linter is failing, mainly with missing type annotations. @sfc-gh-jsummer could you go through the errors and add the missing type hints?

The test run is here, for reference (also at the CI checks at the bottom of the PR): https://github.com/Snowflake-Labs/semantic-model-generator/actions/runs/10515125961/job/29134523988?pr=132

and you can run the formatter locally using make fmt_lint


def upload_partner_semantic() -> bool:
"""
Upload the semantic model to a stage.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to clarify - this doesn't actually upload the file to a snowflake stage, right? just imports the contents locally?

admin_apps/shared_utils.py Outdated Show resolved Hide resolved
@sfc-gh-jsummer sfc-gh-jsummer merged commit d588f5a into main Aug 26, 2024
3 checks passed
@sfc-gh-jsummer sfc-gh-jsummer deleted the jsummer/add-vendor-semantic branch August 26, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants