LucaCappelletti94 opened a new pull request, #2096:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2096
Adds support for `CREATE OPERATOR`, `CREATE OPERATOR FAMILY`, and `CREATE
OPERATOR CLASS` statements.
## Examples
```sql
-- CREATE OPERATOR with all parameters
CREATE OPERATOR < (
PROCEDURE = cas_lt,
LEFTARG = CAS,
RIGHTARG = CAS,
COMMUTATOR = >,
NEGATOR = >=,
RESTRICT = scalarltsel,
JOIN = scalarltjoinsel
);
-- CREATE OPERATOR FAMILY
CREATE OPERATOR FAMILY integer_ops USING btree;
-- CREATE OPERATOR CLASS
CREATE OPERATOR CLASS int4_ops
DEFAULT FOR TYPE int4 USING btree FAMILY integer_ops AS
OPERATOR 1 <,
OPERATOR 2 <=,
FUNCTION 1 btint4cmp(int4, int4),
STORAGE int4;
```
--
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]