28 Sep 18 · npack ·       Add to Favorites  

BigQuery Union Error: Syntax error: Expected keyword ALL or keyword DISTINCT but got keyword SELECT at []

Error Message:

Error: Syntax error: Expected keyword ALL or keyword DISTINCT but got keyword 
SELECT at [16:3]

Solution:

  • For Big Query, you will have to use "UNION ALL" instead of UNION
  • Datatypes for all union columns should be the same

npack

posted on 28 Sep 18

Enjoy great content like this and a lot more !

Signup for a free account to write a post / comment / upvote posts. Its simple and takes less than 5 seconds

Copied