GoogleCloudPlatform / workflows-demos

A collection of Workflows samples for various use cases
Apache License 2.0
131 stars 36 forks source link

Include location parameter in the body example #134

Open lgbaeza opened 1 month ago

lgbaeza commented 1 month ago

https://github.com/GoogleCloudPlatform/workflows-demos/blob/4c4fbd91317f3a0293092d27b37eda1008403af0/bigquery-parallel/workflow-parallel.yaml#L44

Based on QueryRequest Docs and my tests, location atribute should be provided in the example for user convinience. It is not required, but it will be commonly required (e.g. customer using multi-regional datasets).

body:
  location: us #See details at https://cloud.google.com/bigquery/docs/locations#specifying_your_location
  useLegacySql: false
  useQueryCache: false
  timeoutMs: 30000
  # Find top 100 titles with most views on Wikipedia
  query: ${