Skip to content
Advertisement

I am getting “Function not found: day at [5:84]”

This query results in the following error message:

“Function not found: day at [5:84]”

The syntax error in my SQL is also underlined as can be seen in this screen shot: enter image description here

Advertisement

Answer

As mentioned by @Thorsten and @Samuel, you are getting this error as there is no DAY function in BigQuery. If you want to extract day you can use the following syntax:

EXTRACT(DAY FROM date_expression)

For more information on Date functions in BigQuery refer to this documentation.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement