Skip to content

Commit d6ba6be

Browse files
committed
fix(bigquery): final alignment pass from independent multi-agent validation
- Add missing projectId block output (returned by get_table/create_table/create_dataset but was silently dropped from the block's output schema) - Switch query/rows/schema subBlocks from long-input to code, matching the JSON/SQL field convention used by every other DB integration (clickhouse, mongodb, postgresql, supabase)
1 parent e6c07dc commit d6ba6be

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

apps/sim/blocks/blocks/google_bigquery.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const GoogleBigQueryBlock: BlockConfig = {
6767
{
6868
id: 'query',
6969
title: 'SQL Query',
70-
type: 'long-input',
70+
type: 'code',
7171
placeholder: 'SELECT * FROM `project.dataset.table` LIMIT 100',
7272
condition: { field: 'operation', value: 'query' },
7373
required: { field: 'operation', value: 'query' },
@@ -273,7 +273,7 @@ Return ONLY the SQL query - no explanations, no quotes, no extra text.`,
273273
{
274274
id: 'schema',
275275
title: 'Schema',
276-
type: 'long-input',
276+
type: 'code',
277277
placeholder: '[{"name": "id", "type": "STRING", "mode": "REQUIRED"}]',
278278
condition: { field: 'operation', value: 'create_table' },
279279
required: { field: 'operation', value: 'create_table' },
@@ -328,7 +328,7 @@ Return ONLY the JSON array - no explanations, no wrapping, no extra text.`,
328328
{
329329
id: 'rows',
330330
title: 'Rows',
331-
type: 'long-input',
331+
type: 'code',
332332
placeholder: '[{"column1": "value1", "column2": 42}]',
333333
condition: { field: 'operation', value: 'insert_rows' },
334334
required: { field: 'operation', value: 'insert_rows' },
@@ -496,6 +496,10 @@ Return ONLY the JSON array - no explanations, no wrapping, no extra text.`,
496496
type: 'string',
497497
description: 'Dataset ID (get_table, create_table, create_dataset)',
498498
},
499+
projectId: {
500+
type: 'string',
501+
description: 'Project ID (get_table, create_table, create_dataset)',
502+
},
499503
type: { type: 'string', description: 'Table type (get_table, create_table)' },
500504
description: {
501505
type: 'string',

0 commit comments

Comments
 (0)