Skip to content

Commit 0a82189

Browse files
spicyfalafelclaude
andcommitted
docs: fix federated query example with explicit columns and CAST
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b066f2b commit 0a82189

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/tutorials/subscriptions-tutorials/bigquery-aidboxtopicdestination.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ For large datasets (1M+ rows), the default initial export may be slow (single-th
370370

371371
```sql
372372
INSERT INTO `your_project.your_dataset.patients`
373-
SELECT *, 0 as is_deleted
373+
(id, gender, birth_date, family_name, given_name, is_deleted)
374+
SELECT id, gender, CAST(birth_date AS DATE), family_name, given_name, 0 as is_deleted
374375
FROM EXTERNAL_QUERY(
375376
'projects/your_project/locations/your_region/connections/your_connection_id',
376377
'SELECT * FROM sof.patient_flat'

0 commit comments

Comments
 (0)