Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BigQuery Parameter Names allow more characters than currently permitted #1253

Closed
tunetheweb opened this issue Aug 8, 2021 · 0 comments · Fixed by #1254
Closed

BigQuery Parameter Names allow more characters than currently permitted #1253

tunetheweb opened this issue Aug 8, 2021 · 0 comments · Fixed by #1254
Labels
enhancement New feature or request

Comments

@tunetheweb
Copy link
Member

We have an issue whereby the following are not accepted in BigQuery linting:

CREATE TEMP FUNCTION
qs(
    y STRING
)
RETURNS STRUCT<_product_id ARRAY<INT64>>
LANGUAGE js AS """
    CODE GOES HERE
"""

The underscore in _product_id is unparsable.

The BigQuery documentation on identifiers has this to say:

Unquoted identifiers must begin with a letter or an underscore character. Subsequent characters can be letters, numbers, or underscores.

Similarly, this doesn't work:

CREATE TEMP FUNCTION
qs(
    y STRING
)
RETURNS STRUCT<`$=` ARRAY<INT64>>
LANGUAGE js AS """
    CODE GOES HERE
"""

even though the documentation has the following to say:

Quoted identifiers must be enclosed by backtick (`) characters.

  • Quoted identifiers can contain any character, such as spaces or symbols.
  • Quoted identifiers cannot be empty.
  • Quoted identifiers have the same escape sequences as string literals.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant