Troubleshooting queries
Query troubleshooting is an important area to be knowledgeable about when working with BigQuery as it helps identify and resolve issues that may arise during query execution. This section will provide an overview of common query troubleshooting techniques and best practices to give you an understanding of approaches to take while writing queries to resolve any issues that may arise.
The first step in query troubleshooting is to analyze any error messages encountered during query execution. BigQuery will give you an explanation of the error and give you the line number where the error is occurring. At that point, it is up to you to review your query and determine if you may have missed a comma between columns in the select statement or mistyped the table name.
Comment sections of your query during troubleshooting
If your query is taking too long, returning zero results, or giving an error and not running at all, you have the opportunity to rewrite your...