Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Add release notes for 0.8.0 and improve README
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-chen committed Mar 26, 2019
1 parent ae6ece5 commit 19a9577
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 5 deletions.
32 changes: 28 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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
Expand All @@ -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
Expand Down
10 changes: 9 additions & 1 deletion opendistro-elasticsearch-sql.release-notes
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 19a9577

Please sign in to comment.