Comments (5)
Thanks for the quick improvement @mirnawong1 !
However let me reopen the issue with some feedback:
- I see the change of
metric_time
in one place in the doc, however simple page search gives 17 more occurences - I'm sure many of them should be adjusted as well - Overall it would be fantastic to put there some working examples, not some direction of the yml from previous versions. It's still not clear what is required and with what name based on your examples. Let me be specific here:
a)entity_key (required): An entity_key (or some sort of identifier) must be present.
-- how I should interpret it? To have anyentity
of anytype
or having dimension with the nameentity_key
?
b)valid_from
andvalid_to
that are required: should I have 2 dimensions named exactly like these or should I mark them viavalidity_params: is_start/is_end
?
Really sorry for bothering you with it. A bit on the background: I'm running multiple projects with DBT for 2+ years, maintaining a dbt fork and consider myself quite an experienced used, and I still can't deal with these SCD2 dimensions without looking into the metricflow code, that's why I decided to help community and open this doc improvement request.
I know that this is not a error debug channel, but here is the error I have (maybe it will give you a hint where it's needed to update the docs, so users do know how to deal with it :) ):
ERROR: Cannot process join to data set with alias subq_9 because it has a validity window set: ValidityWindowJoinDescription(window_start_dimension=TimeDimensionSpec(element_name='valid_from', entity_links=(), time_granularity=TimeGranularity.DAY, date_part=None, aggregation_state=None), window_end_dimension=TimeDimensionSpec(element_name='valid_to', entity_links=(), time_granularity=TimeGranularity.DAY, date_part=None, aggregation_state=None)), but source data set with alias subq_7 does not have a metric time dimension we can use for the window join!
from docs.getdbt.com.
update - we've merged a PR #5409 which addressed this feedback - i really appreciate it!
from docs.getdbt.com.
hey @SOVALINUX thanks so much for the detailed write up - no worries at all and i appreciate you providing more context and looking out for the community ✨ - I'm going to look into this next week and see how can make this clearer for you. will revert back and thank you again!
with regards to your error, I'm going to flag this to the team internally to see what they say!
from docs.getdbt.com.
also wanted to mention that we're merging this pr today which may be a little related: https://github.com/dbt-labs/docs.getdbt.com/pull/5350/files#diff-fc3ac6b16bd26fe485beef2324ef300d38959f05522372a9e5eb9e2ea66677c1R230
from docs.getdbt.com.
Related Issues (20)
- Correct flag indirect selection.
- Improve SL metrics examples HOT 4
- Fix inconsistency in SL measures HOT 1
- Docs Changes Needed from dbt-core Issue #10056 HOT 1
- Add flag to flags menu.
- Place a seed FAQ in its proper place.
- Suggest improvements to quickstart layouts
- [Core] Adapter support for query cancellation affects behavior of `--fail-fast`
- Docs Changes Needed from dbt-core Issue #9644 HOT 1
- unit testing known exception - can't unit test join logic that doesn't have aliases
- Docs Changes Needed from dbt-core Issue #10062 HOT 1
- update How we structure guide to account for dbt Mesh
- How to set up staging envs procedures
- Cross-database `date` macro
- [Core] Compute-node only functions in Redshift like MEDIAN, etc. won't work with unit tests
- Docs Changes Needed from dbt-core Issue #9699 HOT 1
- Suggestion to improve step 4 of Quickstart for dbt Cloud and Redshift guide
- Add docs on best practice to only run unit tests in dev and CI and exclude them from prod
- Ration metrics page: Remove extra property HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.getdbt.com.