-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 schema versions and dbt versions to json output #2670
Comments
URL something like: schemas.getdbt.com/dbt/... We don't need to host anything there just yet. |
In a world where we have schema versions for dbt artifacts, the N.B. This isn't a prerequisite to resolving the issue. It feels most relevant here and I wanted to avoid losing the thought. |
I've created schema URLs of this form: So for example, We don't happen to host those files, but we could. For I'm going to add two fields here for a certain type of object (RPC responses,
Reading an object triggers a check on the dbt_schema_version field that raises a special exception, which can be caught by dbt. dbt can catch, decorate, and re-raise that error with a filename for better error messaging. In the future, when we implement the metadata field (#2761) we'll push that field down into the metadata, but for now it lives at the root level with most of the other metadata. |
Describe the feature
Add schema versions to our hologram output. I imagine we'd version them with the $schema keyword, but I'm open to using an explicit
schema-version
field instead.I've separated this from #2671 as I think using
$schema
means we should host the schemas somewhere and that requires a bit of infrastructure-type work. Or if we don't want to host the schemas, at least requires some care when it comes to generating the URLs.Describe alternatives you've considered
No versions! Anarchy!
Who will this benefit?
Consumers of dbt's json output.
The text was updated successfully, but these errors were encountered: