I'm working with weather data in BigQuery and need to replace zeroes (mistakenly entered for missing values) with nulls before analyzing wind speed and visibility. My current code results in an error.
Can anyone help me with the correct syntax to achieve this null value replacement? Sharing the relevant code snippet and error message would be greatly appreciated.
The following should work:
The only potential error I can think of is if the column is declared
NOT NULL. You will need to useALTER TABLEfirst to enable null values in the column.