Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String query improvement #48

Open
dai-chen opened this issue May 13, 2021 · 3 comments
Open

String query improvement #48

dai-chen opened this issue May 13, 2021 · 3 comments
Labels
enhancement New feature or request PPL Piped processing language Priority-Low SQL

Comments

@dai-chen
Copy link
Collaborator

dai-chen commented May 13, 2021

Is your feature request related to a problem? Please describe.

Old tracking issue: opendistro-for-elasticsearch/sql#710

  1. The IF function with nested locate function doesn't work in Query Workbench opendistro-for-elasticsearch/sql#861: Locate with IF function

Describe the solution you'd like
N/A

Describe alternatives you've considered
N/A

Additional context
Add any other context or screenshots about the feature request here.

@dai-chen
Copy link
Collaborator Author

dai-chen commented Apr 26, 2022

SPACE function that returns a string with the specified number of spaces is missing: #570

@dai-chen
Copy link
Collaborator Author

dai-chen commented Apr 26, 2022

TRIM function enhancement: #574

@margarit-h
Copy link
Contributor

The following is the list of string functions specified in opendistro-for-elasticsearch/sql#710
The checked ones are implemented in v2 engine. The unchecked ones aren't implemented.
position() seems to be the only string function that is implemented in legacy engine, but not in v2.

Highest Prioritized:

  • like
  • not like
  • regexp
  • substr
  • substring
  • upper
  • lower
  • trim
  • ltrim
  • rtrim

Medium:

  • concat
  • concat_ws
  • length
  • strcmp

Low:

  • ascii
  • bin
  • bit_length
  • char
  • char_length
  • character_length
  • elt
  • export_set
  • field
  • find_in_set
  • format
  • from_base64
  • hex
  • insert
  • instr
  • lcase
  • left
  • load_file
  • locate
  • lpad
  • make_set
  • match
  • mid
  • not_regexp
  • oct
  • octet_length
  • ord
  • position (is implemented in legacy engine, but not in v2)
  • quote
  • regexp_instr
  • regexp_like
  • regexp_replace
  • regexp_substr
  • repeat
  • replace
  • reverse
  • right
  • rlike
  • rpad
  • soundex
  • sounds_like
  • space
  • substring_index
  • to_base64
  • ucase
  • unhex
  • weight_string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PPL Piped processing language Priority-Low SQL
Projects
None yet
Development

No branches or pull requests

2 participants