From 19a957704fa2f4f9ea5a3b8d26582db96fc3b02a Mon Sep 17 00:00:00 2001 From: Dai Date: Tue, 26 Mar 2019 11:04:59 -0700 Subject: [PATCH] Add release notes for 0.8.0 and improve README --- README.md | 32 +++++++++++++++++++--- opendistro-elasticsearch-sql.release-notes | 10 ++++++- 2 files changed, 37 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 19eae8abc0..970733fc50 100644 --- a/README.md +++ b/README.md @@ -63,8 +63,23 @@ curl -XPOST https://localhost:9200/_opendistro/_sql -u admin:admin -k -d '{"quer * Aggregation - select COUNT(*),SUM(age),MIN(age) as m, MAX(age),AVG(age) - FROM bank GROUP BY gender ORDER BY SUM(age), m DESC + SELECT COUNT(*),SUM(age),MIN(age) as m, MAX(age),AVG(age) + FROM bank + GROUP BY gender + HAVING m >= 20 + ORDER BY SUM(age), m DESC + +* Join + + SELECT b1.firstname, b1.lastname, b2.age + FROM bank b1 + LEFT JOIN bank b2 + ON b1.age = b2.age AND b1.state = b2.state + +* Show + + SHOW TABLES LIKE ban% + DESCRIBE TABLES LIKE bank * Delete @@ -76,7 +91,10 @@ curl -XPOST https://localhost:9200/_opendistro/_sql -u admin:admin -k -d '{"quer * Search SELECT address FROM bank WHERE address = matchQuery('880 Holmes Lane') ORDER BY _score DESC LIMIT 3 - + +* SQL++ + + SELECT address FROM bank b, b.nestedField e WHERE b.state = 'WA' and e.name = 'test' * Aggregations @@ -96,9 +114,10 @@ curl -XPOST https://localhost:9200/_opendistro/_sql -u admin:admin -k -d '{"quer SELECT * FROM locations WHERE GEO_BOUNDING_BOX(fieldname,100.0,1.0,101,0.0) -* Select type +* Select type or pattern SELECT * FROM indexName/type + SELECT * FROM index* ## SQL Features @@ -108,6 +127,11 @@ curl -XPOST https://localhost:9200/_opendistro/_sql -u admin:admin -k -d '{"quer * SQL Where * SQL Order By * SQL Group By +* SQL Having +* SQL Inner Join +* SQL Left Join +* SQL Show +* SQL Describe * SQL AND & OR * SQL Like * SQL COUNT distinct diff --git a/opendistro-elasticsearch-sql.release-notes b/opendistro-elasticsearch-sql.release-notes index d3c9661e11..6be2c8d8ce 100644 --- a/opendistro-elasticsearch-sql.release-notes +++ b/opendistro-elasticsearch-sql.release-notes @@ -1,6 +1,14 @@ -## 2019-01-31, Version 6.5.4 (Current) +## 2019-04-02, Version 0.8.0 (Current) +### Notable Changes + +* Feature [#12](https://github.com/opendistro-for-elasticsearch/sql/issues/12): Add support for Elasticsearch 6.6 +* Bug fix [#9](https://github.com/opendistro-for-elasticsearch/sql/issues/9): Fix issue for query by index pattern in JDBC driver. +* Bug fix [#10](https://github.com/opendistro-for-elasticsearch/sql/issues/10): Return friendly error message instead of NPE for illegal query and other exception cases. + + +## 2019-03-11, Version 0.7.0 ### Notable Changes