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

Support dbt-semantic-interfaces 0.3.0 #8820

Merged
merged 8 commits into from
Oct 11, 2023
Merged

Conversation

QMalcolm
Copy link
Contributor

resolves #8819

Problem

We need to use DSI 0.3.0 for 1.7

Solution

Upgrade the dependency on DSI to us 0.3.x versions. Update metric filters and saved query wheres to use new WhereFilterIntersection object

Checklist

  • I have read the contributing guide and understand what's expected of me
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX
  • This PR includes type annotations for new and modified functions

@QMalcolm QMalcolm added artifacts semantic Issues related to the semantic layer labels Oct 11, 2023
@cla-bot cla-bot bot added the cla:yes label Oct 11, 2023
@codecov
Copy link

codecov bot commented Oct 11, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (af0cbcb) 86.27% compared to head (3e6cd21) 86.30%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8820      +/-   ##
==========================================
+ Coverage   86.27%   86.30%   +0.03%     
==========================================
  Files         177      177              
  Lines       26354    26383      +29     
==========================================
+ Hits        22738    22771      +33     
+ Misses       3616     3612       -4     
Flag Coverage Δ
integration 83.09% <100.00%> (+0.03%) ⬆️
unit 64.59% <10.34%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
core/dbt/contracts/graph/manifest_upgrade.py 97.14% <100.00%> (+1.09%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@QMalcolm QMalcolm marked this pull request as ready for review October 11, 2023 19:03
@QMalcolm QMalcolm requested review from a team as code owners October 11, 2023 19:03
@QMalcolm QMalcolm requested review from vadim82 and ChenyuLInx and removed request for a team October 11, 2023 19:03
def upgrade_v10_metric_filters(manifest: dict):
"""Metric filters changed from v10 to v11

v10 filters from a serialized manaifest looked like:
Copy link
Contributor

Choose a reason for hiding this comment

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

🕵️ typo: manaifest -> manifest

Base automatically changed from qmalcolm--8594-add-saved-query-nodes to main October 11, 2023 22:54
@QMalcolm QMalcolm force-pushed the qmalcolm--8819-support-dsi-0.3.0 branch from 1f3109f to 5bb084d Compare October 11, 2023 23:06
@github-actions
Copy link
Contributor

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

@ChenyuLInx
Copy link
Contributor

Did I caught this PR at a bad time? Seems like the diffs are empty right now

…etrics from 904cc1e

To do this I cherry-picked 904cc1e onto my local 1.6.latest branch,
had the test regenerate the test v10 manifest artifact, and then over
wrote the test v10 manifest artifact on this branch (cherry-picking it
across the branches didn't work, had to copy paste :grimmace:)
Regenerating the v10 and v11 test manifest artifacts uncovered an
issue wherein we weren't handling disabled metrics that need to
get upgraded. This commit fixes that. Additionally, the
`upgrade_v10_metric_filters` was getting a bit unwieldy, so I broke
extracted the abstracted sub functions.
When we regenerated the v10 test manifest artifact, it started having
the `metricflow_time_sine` model, and it didn't previously. This caused
`test_backwards_compatible_versions` to start failing because it was
no longer identified as having modified state for v10. The test has
been altered accordingly
@QMalcolm QMalcolm force-pushed the qmalcolm--8819-support-dsi-0.3.0 branch from 5bb084d to 3e6cd21 Compare October 11, 2023 23:21
@QMalcolm
Copy link
Contributor Author

Did I caught this PR at a bad time? Seems like the diffs are empty right now

There was some squash merge weirdness. We've fix it now. Still weird, but less weird.

@QMalcolm QMalcolm merged commit 35f214d into main Oct 11, 2023
49 checks passed
@QMalcolm QMalcolm deleted the qmalcolm--8819-support-dsi-0.3.0 branch October 11, 2023 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
artifacts cla:yes semantic Issues related to the semantic layer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CT-3199] Depend on dbt-semantic-interfaces 0.3.0
3 participants