I'm trying to consume a BigQuery ressource on a workflow, and this is the query : SELECT * FROM campus_staging.sessions_users WHERE session_id IN UNNEST ({{sessionsStartsToday.data}})
sessionsStartsToday.data
it's an array that contains some ids.
When running this query i got this error :
{"data":null,"error":{"error":true,"message":"Syntax error: Missing whitespace between literal and alias at [6:27]","lineNumber":6,"lineCol":27,"isRetoolSystemError":false,"queryExecutionMetadata":{"estimatedResponseSizeBytes":151,"resourceTimeTakenMs":324,"isPreview":false,"resourceType":"bigquery","lastReceivedFromResourceAt":1714646883564}}}
But when i hard code the array like this for an example :
SELECT
*
FROM
campus_staging.sessions_users
WHERE
session_id
IN UNNEST (["53db2dbd-084d-4389-b489"])
it works !