我正在尝试使用documentation中描述的BigQuery的WITH子句。我在运行以下查询时遇到错误:
WITH subQ1 AS (SELECT "1"),
subQ2 AS (SELECT "2")
SELECT * FROM subQ1
UNION ALL
SELECT * FROM subQ2;
引发的错误是:
Error: Encountered " "WITH" "WITH "" at line 1, column 1. Was expecting: <EOF>
任何人都知道我做错了什么?