I have a SQL query involving two joins on different fields.
When I run this query interactively in the UI, I get back a result set, no problem. When I submit the exact same query in batch, I get back a SQL syntax error:
Ambiguous field name 'video' in JOIN. Please use the table qualifier before field name.
But the joins are already fully qualified:
SELECT
t1.video AS video
t1.session AS session
...
FROM
(select video, session, ...) t1
LEFT JOIN EACH
(select video, ...) t2
ON t1.video = t2.video
LEFT JOIN EACH
(select session ...) t3
ON t1.session = t3.session
Is someone from Google Big Query is seeing this, the project is rising-ocean-426, the batch job id is job_1YPDj1wNHPg82aZcvRKjD3coykg
If I pull the query from this job and paste it into the UI, it works (after changing \n to returns).