-
Notifications
You must be signed in to change notification settings - Fork 522
check jobReference.location for query location #2845
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
Conversation
|
|
||
| it should "support missing source tables" in { | ||
| bq.query.extractLocation("SELECT 6") shouldBe None | ||
| bq.query.extractLocation("SELECT 6") shouldBe Some("EU") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this means the query will be executed in EU despite not having any source table.
I'm not sure how it defaults to EU though, a project-wide setting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems like it's probably reading your local config?
scio-bigquery/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #2845 +/- ##
==========================================
- Coverage 71.84% 71.78% -0.06%
==========================================
Files 221 221
Lines 7362 7366 +4
Branches 320 321 +1
==========================================
- Hits 5289 5288 -1
- Misses 2073 2078 +5
Continue to review full report at Codecov.
|
This reverts commit efecafe.
In cases where the tables referenced are backed by Cloud SQL, etc.,
referencedTablesis empty butjobReference.locationis still available for query location.