Closed Altonymous closed 4 weeks ago
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
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.
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