This repository was archived by the owner on Sep 2, 2025. It is now read-only.
Patch for dbt show for a model with a struct column containing a json datatype#974
Merged
Conversation
Contributor
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
dbeatty10
reviewed
Oct 23, 2023
| @@ -0,0 +1,6 @@ | |||
| kind: Fixes | |||
| body: Patch for json inline --show | |||
Contributor
There was a problem hiding this comment.
Looks like you generated a second changelog instead of updating this one, you can just delete this file
Co-authored-by: colin-rogers-dbt <111200756+colin-rogers-dbt@users.noreply.github.com>
mikealfare
reviewed
Oct 23, 2023
mikealfare
approved these changes
Oct 23, 2023
Contributor
mikealfare
left a comment
There was a problem hiding this comment.
I left one minor comment that doesn't affect functionality. I'm providing an approval so that you can merge following that update.
dbt show for a model with a json column
…winkler/json-show-patch
dbt show for a model with a json columndbt show for a model with a struct column containing a json datatype
dbeatty10
reviewed
Oct 23, 2023
| @@ -0,0 +1,6 @@ | |||
| kind: Fixes | |||
| body: Patch for json inline --show | |||
Contributor
There was a problem hiding this comment.
Suggested change
| body: Patch for json inline --show | |
| body: Patch for `dbt show` for `json` within a `struct` |
github-actions Bot
pushed a commit
that referenced
this pull request
Oct 23, 2023
…`json` datatype (#974) * patch for --show with json * update matts handle in changelog * Update dbt/adapters/bigquery/connections.py Co-authored-by: colin-rogers-dbt <111200756+colin-rogers-dbt@users.noreply.github.com> * add json struct functional test * remove old change log * add comment to test --------- Co-authored-by: colin-rogers-dbt <111200756+colin-rogers-dbt@users.noreply.github.com> Co-authored-by: Colin <colin.rogers@dbtlabs.com> (cherry picked from commit 6a3f458)
colin-rogers-dbt
pushed a commit
that referenced
this pull request
Oct 23, 2023
…`json` datatype (#974) (#976) * patch for --show with json * update matts handle in changelog * Update dbt/adapters/bigquery/connections.py Co-authored-by: colin-rogers-dbt <111200756+colin-rogers-dbt@users.noreply.github.com> * add json struct functional test * remove old change log * add comment to test --------- Co-authored-by: colin-rogers-dbt <111200756+colin-rogers-dbt@users.noreply.github.com> Co-authored-by: Colin <colin.rogers@dbtlabs.com> (cherry picked from commit 6a3f458) Co-authored-by: matt-winkler <75497565+matt-winkler@users.noreply.github.com>
github-actions Bot
pushed a commit
that referenced
this pull request
Oct 24, 2023
…`json` datatype (#974) * patch for --show with json * update matts handle in changelog * Update dbt/adapters/bigquery/connections.py Co-authored-by: colin-rogers-dbt <111200756+colin-rogers-dbt@users.noreply.github.com> * add json struct functional test * remove old change log * add comment to test --------- Co-authored-by: colin-rogers-dbt <111200756+colin-rogers-dbt@users.noreply.github.com> Co-authored-by: Colin <colin.rogers@dbtlabs.com> (cherry picked from commit 6a3f458)
colin-rogers-dbt
pushed a commit
that referenced
this pull request
Oct 25, 2023
…`json` datatype (#974) (#978) * patch for --show with json * update matts handle in changelog * Update dbt/adapters/bigquery/connections.py Co-authored-by: colin-rogers-dbt <111200756+colin-rogers-dbt@users.noreply.github.com> * add json struct functional test * remove old change log * add comment to test --------- Co-authored-by: colin-rogers-dbt <111200756+colin-rogers-dbt@users.noreply.github.com> Co-authored-by: Colin <colin.rogers@dbtlabs.com> (cherry picked from commit 6a3f458) Co-authored-by: matt-winkler <75497565+matt-winkler@users.noreply.github.com>
2 tasks
4 tasks
tatiana
added a commit
to astronomer/astronomer-cosmos
that referenced
this pull request
Apr 29, 2025
…xes (#1719) While the initial x.x.0 versions of dbt adapters may have compatibility issues with certain dependencies, I observed that these incompatibilities are progressively addressed in later patch releases. The issue reported in #1709 appears to stem from dbt-bigquery accessing a protected member `google.cloud.bigquery._helpers._CELLDATA_FROM_JSON`, which was removed in `google-cloud-bigquery 3.31.0`. This access I believe was introduced in [dbt-bigquery#974](dbt-labs/dbt-bigquery#974) and later removed in [dbt-bigquery#1061](dbt-labs/dbt-bigquery#1061), with the fix subsequently back-ported to the 1.7 series via [dbt-bigquery#1074](dbt-labs/dbt-bigquery#1074). Therefore, I believe that relying on the latest patch versions is a better approach to avoid such issues, rather than individually resolving discrepancies. This PR aligns with that strategy. closes: #1709 --------- Co-authored-by: Tatiana Al-Chueyr <tatiana.alchueyr@gmail.com>
pankajkoti
added a commit
to astronomer/astronomer-cosmos
that referenced
this pull request
Apr 29, 2025
…xes (#1719) While the initial x.x.0 versions of dbt adapters may have compatibility issues with certain dependencies, I observed that these incompatibilities are progressively addressed in later patch releases. The issue reported in #1709 appears to stem from dbt-bigquery accessing a protected member `google.cloud.bigquery._helpers._CELLDATA_FROM_JSON`, which was removed in `google-cloud-bigquery 3.31.0`. This access I believe was introduced in [dbt-bigquery#974](dbt-labs/dbt-bigquery#974) and later removed in [dbt-bigquery#1061](dbt-labs/dbt-bigquery#1061), with the fix subsequently back-ported to the 1.7 series via [dbt-bigquery#1074](dbt-labs/dbt-bigquery#1074). Therefore, I believe that relying on the latest patch versions is a better approach to avoid such issues, rather than individually resolving discrepancies. This PR aligns with that strategy. closes: #1709 --------- Co-authored-by: Tatiana Al-Chueyr <tatiana.alchueyr@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
resolves #972
Problem
dbt show --selectcurrently breaks when attempted on ajsonfield because of this bigquery python client issueSolution
Patch as suggested by @dbeatty10
Checklist