Skip to content

Conversation

@nevillelyh
Copy link
Contributor

@nevillelyh nevillelyh commented Apr 3, 2020

In cases where the tables referenced are backed by Cloud SQL, etc., referencedTables is empty but jobReference.location is still available for query location.


it should "support missing source tables" in {
bq.query.extractLocation("SELECT 6") shouldBe None
bq.query.extractLocation("SELECT 6") shouldBe Some("EU")
Copy link
Contributor Author

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?

Copy link
Contributor

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?

@codecov
Copy link

codecov bot commented Apr 3, 2020

Codecov Report

Merging #2845 into master will decrease coverage by 0.05%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
...la/com/spotify/scio/bigquery/client/QueryOps.scala 1.47% <0.00%> (-0.05%) ⬇️
...scala/com/spotify/scio/extra/sparkey/package.scala 72.15% <0.00%> (-1.27%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fea907e...2931f6d. Read the comment docs.

@regadas regadas merged commit efecafe into master Apr 3, 2020
@regadas regadas deleted the neville/bq-location branch April 3, 2020 18:36
regadas added a commit to regadas/scio that referenced this pull request Apr 7, 2020
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.

2 participants