LucaCappelletti94 opened a new issue, #1706:
URL: https://github.com/apache/datafusion-sqlparser-rs/issues/1706
The parsing of the `CREATE INDEX` case, is currently incomplete. Here
follows a couple of examples:
```sql
CREATE INDEX users_name_trgm_idx ON users USING gin
(concat_users_name(first_name, last_name) gin_trgm_ops);
```
which raises:
```rust
CREATE INDEX projects_name_description_trgm_idx ON projects USING gin
(concat_projects_name_description(name, description) gin_trgm_ops);:
ParserError("Expected: ), found: gin_trgm_ops")
```
Or analogously:
```sql
CREATE INDEX sample_containers_barcode_trgm_idx ON sample_containers USING
gin (barcode gin_trgm_ops);
```
which raises:
```rust
CREATE INDEX sample_containers_barcode_trgm_idx ON sample_containers USING
gin (barcode gin_trgm_ops);: ParserError("Expected: ), found: gin_trgm_ops")
```
I will be attempting shortly to do a PR adding support for these use cases.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]