Skip to content

ARRAY[] not supported in redshift #884

@nathanmmiller

Description

@nathanmmiller

Describe the bug
Example sql: select thing from table where id = any(array[1, 2])

Expected behavior
It should format at all

Actual behavior
It completely crashes

Parse error: Unexpected "[1, 2])" at line 1 column 45. SQL dialect used: "redshift".

Please report this at Github issues page.

Stack Trace:

Error: Parse error: Unexpected "[1, 2])" at line 1 column 45.
SQL dialect used: "redshift".

Usage

  • How are you calling / using the library? This fails even in the demo website
  • What SQL language(s) does this apply to? Redshift
  • Which SQL Formatter version are you using? 15.6.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions