You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Takeshi Yamamuro (Jira)" <ji...@apache.org> on 2019/12/29 09:31:00 UTC

[jira] [Updated] (SPARK-28768) Implement more text pattern operators

     [ https://issues.apache.org/jira/browse/SPARK-28768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Takeshi Yamamuro updated SPARK-28768:
-------------------------------------
    Parent Issue: SPARK-30375  (was: SPARK-27764)

> Implement more text pattern operators
> -------------------------------------
>
>                 Key: SPARK-28768
>                 URL: https://issues.apache.org/jira/browse/SPARK-28768
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Yuming Wang
>            Priority: Major
>
> {code:sql}
> postgres=# \do ~*~
>                                      List of operators
>    Schema   | Name | Left arg type | Right arg type | Result type |       Description
> ------------+------+---------------+----------------+-------------+-------------------------
>  pg_catalog | ~<=~ | character     | character      | boolean     | less than or equal
>  pg_catalog | ~<=~ | text          | text           | boolean     | less than or equal
>  pg_catalog | ~<~  | character     | character      | boolean     | less than
>  pg_catalog | ~<~  | text          | text           | boolean     | less than
>  pg_catalog | ~>=~ | character     | character      | boolean     | greater than or equal
>  pg_catalog | ~>=~ | text          | text           | boolean     | greater than or equal
>  pg_catalog | ~>~  | character     | character      | boolean     | greater than
>  pg_catalog | ~>~  | text          | text           | boolean     | greater than
>  pg_catalog | ~~   | bytea         | bytea          | boolean     | matches LIKE expression
>  pg_catalog | ~~   | character     | text           | boolean     | matches LIKE expression
>  pg_catalog | ~~   | name          | text           | boolean     | matches LIKE expression
>  pg_catalog | ~~   | text          | text           | boolean     | matches LIKE expression
> (12 rows)
> {code}
> {noformat}
> postgres=# select '1' ~<~ '2';
>  ?column?
> ----------
>  t
> (1 row)
> {noformat}
> https://stackoverflow.com/questions/35807872/operator-in-postgres



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org