Skip to content

feat(go): handle SCRIPT-type queries returning results (cherry-picked from upstream) - #14

Merged
serramatutu merged 1 commit into
mainfrom
serramatutu/cherry-pick-script
Sep 1, 2026
Merged

serramatutu merged 1 commit into
mainfrom
serramatutu/cherry-pick-script

Conversation

@serramatutu

Copy link
Copy Markdown

Cherry-picking from upstream:


Also, patch the SDK to expose the true reason if we fail to get
an Arrow iterator.

Patch for the SDK:
lidavidm/google-cloud-go@3e66704

Related issue:
dbt-labs/dbt#16081

Unlike the forked driver, we catch SCRIPT queries that don't
return results and continue substituting in an empty result set.


Co-authored-by: Mandukhai Alimaa 114253933+Mandukhai-Alimaa@users.noreply.github.com
(cherry picked from commit b995c04)

)

Also, patch the SDK to expose the true reason if we fail to get
an Arrow iterator.

Patch for the SDK:
lidavidm/google-cloud-go@3e66704

Related issue:
dbt-labs/dbt#16081

Unlike the forked driver, we catch SCRIPT queries that don't
return results and continue substituting in an empty result set.

---------

Co-authored-by: Mandukhai Alimaa <114253933+Mandukhai-Alimaa@users.noreply.github.com>
(cherry picked from commit b995c04)
@serramatutu serramatutu changed the title feat(go): handle SCRIPT-type queries returning results (#268) feat(go): handle SCRIPT-type queries returning results Aug 31, 2026
@serramatutu serramatutu changed the title feat(go): handle SCRIPT-type queries returning results feat(go): handle SCRIPT-type queries returning results (cherry-picked from upstream) Aug 31, 2026
@VersusFacit

Copy link
Copy Markdown

we catch SCRIPT queries that don't return results and continue substituting in an empty result set.

why

@VersusFacit VersusFacit left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm but I'd like to know why we have this divergence from the upstream

@serramatutu

serramatutu commented Sep 1, 2026

Copy link
Copy Markdown
Author

@VersusFacit

I'd like to know why we have this divergence from the upstream

Harry's rebase was done before this patch landed upstream. In fact, I reported the bug to them and they fixed it lol

@serramatutu
serramatutu merged commit ea6f2c7 into main Sep 1, 2026
7 of 12 checks passed
@lidavidm

lidavidm commented Sep 1, 2026

Copy link
Copy Markdown

Yes, thanks for reporting it to us!

This branch had an error being deployed

1 failed deployment
BigQuery CI 2ada9cdb Deployed Aug 31, 2026 by serramatutu via Test/macos_arm64 #20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants