I'm getting really really inconsistent results, and I can't tell why. Here is the most obvious example:
Two queries:
select * from my_table
where invitation_deleted = true
-- returns 118 results
select * from my_table t
where t.invitation_deleted = true
-- returns 0 results
But there are other examples! Such as when defining the view in my select statement
CASE
WHEN my_field IS NULL THEN FALSE
ELSE TRUE
END as my_computed_field
...
-- This will allow me to do "where my_computed_field = true" and get results
-- where as this:
my_field IS NOT NULL AS my_computed_field
-- this will not work if I go "where my_computed_field = true"
There seem to be many flavors of this... where my computed boolean field is extremely finicky, and I can't tell when it will or will not work as expected. Am I fundamentally misunderstanding something about how BigQuery handles booleans?