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

[FORMATTING] Issue Title Here #743

Open
Altonymous opened this issue May 15, 2024 · 1 comment
Open

[FORMATTING] Issue Title Here #743

Altonymous opened this issue May 15, 2024 · 1 comment
Labels

Comments

@Altonymous
Copy link

Input data
SELECT webhook_data_json.unified_receipt.latest_receipt_info[0].is_trial_period::boolean

Expected Output

SQL to be formatted.

Actual Output

Unable to format SQL: Error: Parse error: Unexpected "[0].is_tri" at line 5 column 112

Usage

  • How are you calling / using the library? VS Code Extension
  • What SQL language(s) does this apply to? RedShift (Super DataType)
  • Which SQL Formatter version are you using? sql-formatter v12.0.6 (Build into Prettier SQL VSCode extension.
@Altonymous Altonymous added the bug label May 15, 2024
@nene
Copy link
Collaborator

nene commented May 15, 2024

Thanks for reporting.

I didn't know that RedShift supports the array-access syntax. Could you point me to the relevant part of RedShift documentation that describes this?

Be aware though that I can't fix this issue in "Prettier SQL VSCode extension". See the FAQ.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants