Skip to content

Fix: only backtick-quote reserved keywords#6

Merged
fpopic merged 1 commit into
masterfrom
fix-quoting-master
Mar 14, 2026
Merged

Fix: only backtick-quote reserved keywords#6
fpopic merged 1 commit into
masterfrom
fix-quoting-master

Conversation

@fpopic
Copy link
Copy Markdown
Owner

@fpopic fpopic commented Mar 14, 2026

This PR fixes the quoting logic to only apply backticks (`) to field names that are actually BigQuery reserved keywords or contain special characters.

  • Updated isReserved logic using a regex of common BQ keywords.
  • Updated quoteIfNeeded to check for both reserved words and non-standard characters.
  • Cleaned up SQL examples in README.md.
  • Updated all test resources to match the new, cleaner output.

@fpopic fpopic merged commit e7d0b43 into master Mar 14, 2026
2 checks passed
@fpopic fpopic deleted the fix-quoting-master branch March 14, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant