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

Created at snapshot #2

Open
wants to merge 39 commits into
base: main
Choose a base branch
from
Open

Created at snapshot #2

wants to merge 39 commits into from

Commits on Oct 25, 2023

  1. Fix partial parsing issue not working for changing semantic model name (

    dbt-labs#8865) (dbt-labs#8878)
    
    * fix
    
    * test
    
    * changelog
    
    (cherry picked from commit 35f46da)
    
    Co-authored-by: Chenyu Li <[email protected]>
    github-actions[bot] and ChenyuLInx authored Oct 25, 2023
    Configuration menu
    Copy the full SHA
    ced70d5 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2023

  1. Contract enforcement on temporary tables (dbt-labs#8889) (dbt-labs#8902)

    * add test
    
    * fix test
    
    * first pass with constraint error
    
    * add back column checks for temp tables
    
    * changelog
    
    * Update .changes/unreleased/Fixes-20231024-145504.yaml
    
    (cherry picked from commit 98310b6)
    
    Co-authored-by: Emily Rockman <[email protected]>
    github-actions[bot] and emmyoop authored Oct 26, 2023
    Configuration menu
    Copy the full SHA
    12c1cbb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5e13698 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2023

  1. Backport Catalog Fix to 1.7.latest (dbt-labs#8953)

    * Fix issues around new get_catalog_by_relations macro (dbt-labs#8856)
    
    * Fix issues around new get_catalog_by_relations macro
    
    * Add changelog entry
    
    * Fix unit test.
    
    * Additional unit testing
    
    * Fix cased comparison in catalog-retrieval function (dbt-labs#8940)
    
    * Fix cased comparison in catalog-retrieval function.
    
    * Fix cased comparison in catalog-retrieval function.
    peterallenwebb authored Oct 31, 2023
    Configuration menu
    Copy the full SHA
    b6f0eac View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2023

  1. add a no-op runner for saved_query (dbt-labs#8937) (dbt-labs#8958)

    (cherry picked from commit 211392c)
    
    Co-authored-by: Chenyu Li <[email protected]>
    github-actions[bot] and ChenyuLInx authored Nov 1, 2023
    Configuration menu
    Copy the full SHA
    333d793 View commit details
    Browse the repository at this point in the history
  2. ADAP-974: Fix issue where materialized views were not showing up in c…

    …atalog queries (dbt-labs#8945) (dbt-labs#8963)
    
    * changelog
    * write test case demonstrating the issue
    * update catalog query to reflect materialized views
    
    (cherry picked from commit bb21403)
    
    Co-authored-by: Mike Alfare <[email protected]>
    github-actions[bot] and mikealfare authored Nov 1, 2023
    Configuration menu
    Copy the full SHA
    1cbab80 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    eeaaec4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0995825 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2023

  1. Configuration menu
    Copy the full SHA
    a8fcf77 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2401600 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2023

  1. Fix back compat for run_results pre-v5 (dbt-labs#9009) (dbt-labs#9017)

    * Fix back compat for run_results pre-v5
    
    * Add type annotations
    
    * Add functional testing
    
    * Add inline annotations
    
    * Add changelog entry.
    
    * Consolidate upgrade_schema_version + upgrade_run_results_json
    
    * Restore accidentally reverted test cases
    
    * Pre-commit fixups
    
    ---------
    
    Co-authored-by: Jeremy Cohen <[email protected]>
    peterallenwebb and jtcohen6 authored Nov 7, 2023
    Configuration menu
    Copy the full SHA
    66cb5a0 View commit details
    Browse the repository at this point in the history
  2. Use MANIFEST.in to identify package data, allows recursive include (d…

    …bt-labs#9021) (dbt-labs#9026)
    
    * changelog
    
    * use MANIFEST.in to identify package data
    
    (cherry picked from commit 839c720)
    
    Co-authored-by: Mike Alfare <[email protected]>
    github-actions[bot] and mikealfare authored Nov 7, 2023
    Configuration menu
    Copy the full SHA
    bebd6ca View commit details
    Browse the repository at this point in the history
  3. Fix lock for git subduer (dbt-labs#9019) (dbt-labs#9028)

    * wip
    
    * add tests
    
    * changelog
    
    * nits
    
    * pr feedback
    
    * nits
    
    (cherry picked from commit 01d481b)
    
    Co-authored-by: Chenyu Li <[email protected]>
    github-actions[bot] and ChenyuLInx authored Nov 7, 2023
    Configuration menu
    Copy the full SHA
    7d60d63 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ce86238 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6ba3dc2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7eb6cdb View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2023

  1. Configuration menu
    Copy the full SHA
    67d8ce3 View commit details
    Browse the repository at this point in the history
  2. test pinning ddtrace (dbt-labs#9090) (dbt-labs#9092)

    (cherry picked from commit 3902137)
    
    Co-authored-by: Michelle Ark <[email protected]>
    github-actions[bot] and MichelleArk authored Nov 15, 2023
    Configuration menu
    Copy the full SHA
    2a9c368 View commit details
    Browse the repository at this point in the history
  3. Support hierarchical config setting for SavedQueryExport configs (dbt…

    …-labs#9065) (dbt-labs#9074)
    
    * Add test asserting `SavedQuery` configs can be set from `dbt_project.yml`
    
    * Allow extraneous properties in Export configs
    
    This brings the Export config object more in line with how other config
    objects are specified in the unparsed definition. It allows for specifying
    of extra configs, although they won't get propagate to the final config.
    
    * Add `ExportConfig` options to `SavedQueryConfig` options
    
    This allows for specifying `ExportConfig` options at the `SavedQueryConfig` level.
    This also therefore allows these options to be specified in the dbt_project.yml
    config. The plan in the follow up commit is to merge the `SavedQueryConfig` options
    into all configs of `Exports` belonging to the saved query.
    
    There are a couple caveots to call out:
    1. We've used `schema` instead of `schema_name` on the `SavedQueryConfig` despite
    it being called `schema_name` on the `ExportConfig`. This is because need `schema_name`
    to be the name of the property on the `ExportConfig`, but `schema` is the user facing
    specification.
    2. We didn't add the `ExportConfig` `alias` property to the `SavedQueryConfig` This
    is because `alias` will always be specific to a single export, and thus it doesn't
    make sense to allow defining it on the `SavedQueryConfig` to then apply to all
    `Exports` belonging to the `SavedQuery`
    
    * Begin inheriting configs from saved query config, and transitively from project config
    
    Export configs will now inherit from saved query configs, with a preference
    for export config specifications. That is to say an export config will inherity
    a config attr from the saved query config only if a value hasn't been supplied
    on the export config directly. Additionally because the saved query config has
    a similar relationship with the project config, exports configs can inherit
    from the project config (again with a preference for export config specifications).
    
    * Correct conditional in export config building for map schema to schema_name
    
    I somehow wrote a really weird, but also valid, conditional statement. Previously
    the conditional was
    ```
    if combined.get("schema") is not combined.get("schema_name") is None:
    ```
    which basically checked whether `schema` was a boolean that didn't match
    the boolean of whether `schema_name` was None. This would pretty much
    always evaluate to True because `schema` should be a string or none, not
    a bool, and thus would never match the right hand side. Crazy. It has now
    been fixed to do the thing we want to it to do. If `schema` isn't `None`,
    and `schema_name` is `None`, then set `schema_name` to have the value of
    `schema`.
    
    * Update parameter names in `_get_export_config` to be more verbose
    
    (cherry picked from commit c2f7d75)
    
    Co-authored-by: Quigley Malcolm <[email protected]>
    github-actions[bot] and QMalcolm authored Nov 15, 2023
    Configuration menu
    Copy the full SHA
    73ebe53 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2023

  1. [Backport 1.7.latest] [IDE] also treat SystemExit exception as an int…

    …errupt. (dbt-labs#9042)
    
    * During node execution, also treat SystemExit as an interrupt. (dbt-labs#8994)
    
    IDE worker process raises SystemExit in multiple scenarios, including user abort of a command.
    
    (cherry picked from commit 931b2db)
    
    * Add test asserting GraphRunnableTasks attempt to cancel connections on SystemExit (dbt-labs#9101)
    
    * Add test asserting GraphRunnableTasks attempt to cancel connections on SystemExit
    
    * Add test asserting GraphRunnableTasks attempt to cancel connections on KeyboardInterrupt
    
    * Add test asserting GraphRunnableNode doesn't try to cancel connections on generic Exception
    
    ---------
    
    Co-authored-by: Ben Mosher <[email protected]>
    Co-authored-by: Quigley Malcolm <[email protected]>
    3 people authored Nov 16, 2023
    Configuration menu
    Copy the full SHA
    b5885da View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1e45a75 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ae75cc3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f94bf2b View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2023

  1. Backport dbt-labs#9147 to 1.7.latest (dbt-labs#9156)

    * Fixups for deps lock file (dbt-labs#9147)
    
    * Update git revision with commit SHA
    
    * Use PackageRenderer for lock file
    
    * add unit tests for git and tarball packages
    
    * deepcopy unrendered_packages_data before iteration, fix remaining tests
    
    * Add functional tests
    
    * Add changelog entries
    
    * Assert one more
    
    ---------
    
    Co-authored-by: Michelle Ark <[email protected]>
    
    * Restore warning on unpinned git packages
    
    ---------
    
    Co-authored-by: Michelle Ark <[email protected]>
    jtcohen6 and MichelleArk authored Nov 29, 2023
    Configuration menu
    Copy the full SHA
    09f5bb3 View commit details
    Browse the repository at this point in the history
  2. [Backport 1.7.latest] Fix dbt-labs#9119: Get sources working again in…

    … `dbt docs generate` (dbt-labs#9163)
    
    Co-authored-by: Kshitij Aranke <[email protected]>
    github-actions[bot] and aranke authored Nov 29, 2023
    Configuration menu
    Copy the full SHA
    cf3714d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    de35686 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fc2d16f View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2023

  1. [Backport 1.7.latest] Fix ensuring we produce valid jsonschema artifa…

    …cts for manifest, catalog, sources, and run-results (dbt-labs#9229)
    
    * Drop `all_refs=True` from jsonschema-ization build process
    
    Passing `all_refs=True` makes it so that Everything is a ref, even
    the top level schema. In jsonschema land, this essentially makes the
    produced artifact not a full schema, but a fractal object to be included
    in a schema. Thus when `$id` is passed in, jsonschema tools blow up
    because `$id` is for identifying a schema, which we explicitly weren't
    creating. The alternative was to drop the inclusion of `$id`. Howver, we're
    intending to create a schema, and having an `$id` is recommended best
    practice. Additionally since we were intending to create a schema,
    not a fractal, it seemed best to create to full schema.
    
    * Explicity produce jsonschemas using DRAFT_2020_12 dialect
    
    Previously were were implicitly using the `DRAFT_2020_12` dialect through
    mashumaro. It felt wise to begin explicitly specifying this. First, it
    is closest in available mashumaro provided dialects to what we produced
    pre 1.7. Secondly, if mashumaro changes its default for whatever reason
    (say a new dialect is added, and mashumaro moves to that), we don't want
    to automatically inherit that.
    
    * Begin including schema dialect specification in produced jsonschema
    
    In jsonschema's documentation they state
    > It's not always easy to tell which draft a JSON Schema is using.
    > You can use the $schema keyword to declare which version of the JSON Schema specification the schema is written to.
    > It's generally good practice to include it, though it is not required.
    
    and
    
    > For brevity, the $schema keyword isn't included in most of the examples in this book, but it should always be used in the real world.
    
    Basically, to know how to parse a schema, it's important to include what
    schema dialect is being used for the schema specification. The change in
    this commit ensures we include that information.
    
    * Add change documentation for jsonschema schema production fix
    
    * Regenerate dbt jsonschemas with fixed mashumaro jsonschema production process
    
    Specifically we regenerated
    * catalog v1
    * manifest v11
    * run-results v5
    * sources v3
    using the command `scripts/collect-artifact-schema.py --path schemas`
    QMalcolm authored Dec 7, 2023
    Configuration menu
    Copy the full SHA
    0ef8638 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2023

  1. [Backport 1.7.latest] Update parser to support conversion metrics db…

    …t-labs#9173  (dbt-labs#9255)
    
    * Move minimum DSI version to 0.4.2
    
    We're backporting a feature "conversion metrics" to 1.7. Conversion
    metrics don't exist in DSI < 0.4.2 which is problematic if we allow
    for those versions. This ensures that those who are on a version of
    1.7 that supports conversion metrics will also have the requisit version
    of DSI.
    
    * added ConversionTypeParams classes
    
    * updated parser for ConversionTypeParams
    
    * added step to populate input_measure for conversion metrics
    
    * added tests
    
    * added changelog
    
    * Regenerate v11 manifest jsonschema to include conversion metrics definition
    
    * Regenerate v11 manifest test artifact for testing version compatability
    
    ---------
    
    Co-authored-by: Will Deng <[email protected]>
    QMalcolm and WilliamDee authored Dec 11, 2023
    Configuration menu
    Copy the full SHA
    d65179b View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2023

  1. Configuration menu
    Copy the full SHA
    9f0bcf5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d338b3e View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2024

  1. Backport 9328 to 1.7.latest (dbt-labs#9391)

    * Fix full-refresh and vars for retry (dbt-labs#9328)
    
    Co-authored-by: Peter Allen Webb <[email protected]>
    (cherry picked from commit 1e4286a)
    
    * pr feedback
    
    * Update requires.py
    ChenyuLInx authored Jan 17, 2024
    Configuration menu
    Copy the full SHA
    6e33183 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2024

  1. Configuration menu
    Copy the full SHA
    5f5ddd2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1f98991 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2024

  1. Configuration menu
    Copy the full SHA
    3f3dda4 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2024

  1. [Backport 1.7.latest] fix retry as CLI (dbt-labs#9448)

    (cherry picked from commit 50b85a0)
    
    Co-authored-by: Chenyu Li <[email protected]>
    github-actions[bot] and ChenyuLInx authored Jan 25, 2024
    Configuration menu
    Copy the full SHA
    bc494bb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5ec34cd View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2024

  1. created_at based strategy of snapshot for dbt v1.7.6

    Pavel Erokhin committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    cbe3711 View commit details
    Browse the repository at this point in the history
  2. Revert "Bumping version to 1.7.6 and generate changelog"

    This reverts commit 5ec34cd.
    Pavel Erokhin committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    a060aba View commit details
    Browse the repository at this point in the history