Skip to main content
Question

GoogleBigQueryConnector Query returns no results

  • July 15, 2020
  • 6 replies
  • 64 views

I've installed the Google BigQuery package into 2020.1 and I've got a web connection to a BigQuery project. The connection seems to work since I can see the dataset and tables listed. I am sending a simple SQL 'SELECT * FROM...' and I've tried 'SELECT col1, col2 FROM ...' I want the query to return records from a non-spatial BigQuery table to use in FME. I don't get any results and the log doesn't seem to give anything helpful. We've opened all the permissions on the account. Does anyone have any advice on how to get this to work?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

6 replies

Forum|alt.badge.img

Hi @grasmith,

Does the translation run successful or do you see any errors in the log file?

Also, can you confirm that the query ran successfully? You can check the Query History in the Google BigQuery UI.


Forum|alt.badge.img

Hi @grasmith,

Did you specify the attributes you want to expose to the transformer? All columns specified in the query will be returned after the query ran, but currently, you still need to "expose" them in the exposed attributes parameter if you want to use them in subsequent transformers or see them in the preview or Inspector as a table. See my screenshot using the default example query and exposing the to columns name & gender.

 

 

I hope this helps!


  • Author
  • July 15, 2020

Hi @grasmith,

Does the translation run successful or do you see any errors in the log file?

Also, can you confirm that the query ran successfully? You can check the Query History in the Google BigQuery UI.

Log says its successful and I don't see any errors. Features read = 0. I can run the SQL query fine on the BigQuery Console. I've also entered the fields for the exposed attributes.


Forum|alt.badge.img

Log says its successful and I don't see any errors. Features read = 0. I can run the SQL query fine on the BigQuery Console. I've also entered the fields for the exposed attributes.

The Features Read = 0 is expected because this is technically not a Reader, but a Transformer to send queries to BigQuery.

 

 

Are there any features returned at all (did you attach loggers)?

 

If possible can you try the default query (it's using a public dataset) in the transformer to see if this query runs successfully (similar to my screenshot)?

 

 

If this doesn't work either please file a report with our Support Team and share the entire log file of your translation with them. Then we'll take a closer look at this.

 

https://www.safe.com/support/report-a-problem/

 

 

Sorry for the inconvenience.

  • Author
  • July 16, 2020

Hi @grasmith,

Did you specify the attributes you want to expose to the transformer? All columns specified in the query will be returned after the query ran, but currently, you still need to "expose" them in the exposed attributes parameter if you want to use them in subsequent transformers or see them in the preview or Inspector as a table. See my screenshot using the default example query and exposing the to columns name & gender.

 

 

I hope this helps!

Thanks for the graphic, my problem was I was passing an empty table to the input port, I changed it to Creator and it worked. Your graphic was the key! Thanks much!


Forum|alt.badge.img

Thanks for the graphic, my problem was I was passing an empty table to the input port, I changed it to Creator and it worked. Your graphic was the key! Thanks much!

Awesome! Thanks for the update!