Welcome to the Alteryx Knowledge Base
Google BigQuery Error with Hyphens in SQL Query
Created/Edited -
Summary
Description
When clicking the Test Query button in the SQL Editor in the Input tool, an Invalid Query error is thrown.
Invalid Query: Syntax error: Unexpected "-"
or
Invalid Query: Syntax error: Expected end of input but got "-"
Issue
Environment
- Alteryx Designer 2023.1 and newer
- Simba Google BigQuery ODBC driver 2.4.6 or newer
Resolution
Make sure projects, datasets, and table names are quoted.
For example:
Select * from `project-with-hyphen`.`dataset`.`table-name`
Was this article helpful?