harbor run -t openthoughts/tasktrove-openswe-tasks-patched-v5-oracle-success-openswe_oss-22464
harbor download openthoughts/tasktrove-openswe-tasks-patched-v5-oracle-success-openswe_oss-22464
The repository has not been cloned yet. Run the following command first to clone the repo, check out the target commit, and install dependencies:
bash /setup_files/setup.sh
The code will then be available at /testbed.
/testbed
You are working on the repository sqlfluff/sqlfluff (instance: sqlfluff__sqlfluff-6288).
sqlfluff/sqlfluff
sqlfluff__sqlfluff-6288
The code is located in /testbed.
##5404 Failure to recognize system variables in SET expression for bigquery dialect when parsing
sqlfluff returned a parsing violation error when the input content featured a bigquery SET expression with a system variable
Specifically, ran "sqlfluff parse vars.sql --dialect bigquery" The content of "vars.sql" is:
SET @@query_label = 'text';
The sqlfluff command succeeds without an error.
The command indicates a parsing violation error with this output:
==== parsing violations ==== L: 1 | P: 1 | PRS | Line 1, Position 1: Found unparsable section: "SET @@query_label = | 'text';"
Run "sqlfluff parse vars.sql --dialect bigquery" Where the content of "vars.sql" is:
It appears that this error is incorrectly returned for any of the system variables defined in bigquery documentation: https://cloud.google.com/bigquery/docs/reference/system-variables The "sqlfluff lint" subcommand also unexpectedly generates the same error.
bigquery
2.3.5
None.