Is it correct behavior for BigQuery's TIMESTAMP(<date_string>) function to return epoch time instead of failing the query if the argument provided is not a valid STRING?
For example:
SELECT TIMESTAMP(2015-06-30) as foo FROM [a_table]
..runs as being valid SQL and returns 1970-01-01 00:32:59 UTC
Obviously, the argument is missing the enclosing quotes, so:
SELECT TIMESTAMP('2015-06-30') as foo FROM [a_table]
..now returns 2015-06-30 00:00:00 UTC
Contrastingly, PARSE_UTC_USEC(<date_string>) which also expects a STRING parameter, complains when it's not a proper STRING:
SELECT PARSE_UTC_USEC(2015-06-30) as foo FROM [a_table]
Error: Argument to PARSE_UTC_USEC must have type STRING but was int64