Skip to content

Commit 05b5b4a

Browse files
committed
fix(ci): pin bq table creation to EU location
BigQuery was intermittently failing with "not found in location EU" because bq query without --location can default to US, while the kestra_unit_test dataset lives in EU. Soda's BigQuery client routes queries to the dataset's region (EU), causing a location mismatch.
1 parent 2f025d0 commit 05b5b4a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/setup-unit.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ gcloud config set project "${PROJECT_ID}" >/dev/null
1313
echo "📋 Creating test tables in existing dataset ${PROJECT_ID}:${DATASET}..."
1414

1515
# orderDetail table: used in 'run' and 'error' tests
16-
bq query --use_legacy_sql=false "
16+
bq query --use_legacy_sql=false --location=EU "
1717
CREATE OR REPLACE TABLE \`${PROJECT_ID}.${DATASET}.orderDetail\` AS
1818
SELECT 1 AS id, 10.5 AS unitPrice, TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 1 DAY) AS addedDate
1919
UNION ALL
2020
SELECT 2 AS id, 200.0 AS unitPrice, TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 2 DAY) AS addedDate;
2121
"
2222

2323
# territory table: used in 'failed' test
24-
bq query --use_legacy_sql=false "
24+
bq query --use_legacy_sql=false --location=EU "
2525
CREATE OR REPLACE TABLE \`${PROJECT_ID}.${DATASET}.territory\` AS
2626
SELECT 1 AS id, 'North' AS name, 1 AS regionId
2727
UNION ALL

0 commit comments

Comments
 (0)