You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 2, 2022. It is now read-only.
Using Docker image amazon/opendistro-for-elasticsearch:1.1.0 Dataset: Flights sample data (loaded through Kibana) SQL Plugin version: 1.1.0.1
Example Query:
SELECT substring(OriginWeather, 1, 4) FROM kibana_sample_data_flights
Results:
| substring_1 |
| unn |
| lea |
| ain |
| hun |
| ama |
...
Expectation:
The JDBC standard defines the SUBSTRING() function as being 1-indexed (ie. the first character in the string is index 0), and the upper bound as inclusive, so the results should be as shown below:
Using Docker image
amazon/opendistro-for-elasticsearch:1.1.0Dataset: Flights sample data (loaded through Kibana)
SQL Plugin version: 1.1.0.1
Example Query:
SELECT substring(OriginWeather, 1, 4) FROM kibana_sample_data_flights
Results:
Expectation:
The JDBC standard defines the SUBSTRING() function as being 1-indexed (ie. the first character in the string is index 0), and the upper bound as inclusive, so the results should be as shown below: