I'm getting an error when using a date column in the BigQuery web UI, with a query in standard SQL, when using table wildcards.
This works:
#standardSQL
SELECT
sale_item,
date_of_sale
FROM `my-project.past_sales.sales_20170601`
limit 100
This does not:
#standardSQL
SELECT
sale_item,
date_of_sale
FROM `my-project.past_sales.sales_*`
WHERE _TABLE_SUFFIX BETWEEN "20170530" AND "20170601"
limit 100
The column date_of_sale is type DATE, while sale_item is type STRING. The error is: Error: Invalid adaptation for field: date_of_sale (message Msg_0_CLOUD_QUERY_TABLE). Cannot change from TYPE_STRING to int32