Im getting a weird error(Maybe im getting this error for the first time) from BQ.
No matching signature for operator = for argument types: INT64, STRING.
Supported signatures: ANY = ANY at [27:1]
Query:
SELECT col1
,col2
,col3
FROM tbl1
JOIN t2 ON t1.id = t2.id
JOIN t3 on t2.id = t3.id
JOIN t4 on t4.id = t1.id
Error line JOIN t2.id = t3.id
t2.id is showing this error.
its an integer column.
One of your comparisons is mixing types. This is a bad idea -- as the error message shows. You need to find out which pair (or pairs) and do one of the following:
cast(t2.id as string) = t3.id
t2.id = safe.cast(t3.id as int64)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With