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
Copy file name to clipboardExpand all lines: README.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,11 @@
7
7
This quickie app converts SQL statements into ElasticSearch equivalent queries. Note that the converter is very much a work in progress, and as such, doesn't support great many things.
8
8
9
9
## What works
10
-
At the moment the application supports SELECT, FROM, WHERE statements.
10
+
At the moment the application supports SELECT, FROM, WHERE, GROUP BY statements.
11
11
For SELECT, you can either place * or specify column names.
12
12
The FROM statement works with either aliases or indexes.
13
-
The WHERE conditions support a subset of operators: =, >, >=, <, <=, IN, BETWEEN
13
+
The WHERE conditions support a subset of operators: =, >, >=, <, <=, IN, BETWEEN
14
+
The GROUP BY statement only supports column names. Functions such as COUNT(*) will cause the translation to fail
14
15
15
16
Examples:
16
17
```sql
@@ -30,11 +31,16 @@ FROM Planets
30
31
WHERE SpacecraftWithinKilometers <10000
31
32
```
32
33
34
+
```sql
35
+
SELECT SolarSystem, Galaxy
36
+
FROM Planets
37
+
WHERE SpacecraftWithinKilometers <10000
38
+
GROUP BY SolarSystem, Galaxy
39
+
```
33
40
34
41
## What doesn't work yet
35
42
+ Inequality operator (!=)
36
43
+ LIKE operator
37
-
+ Grouping and Aggregations
38
44
+ Sorting
39
45
+ Joins (because ElasticSearch doesn't support them)
40
46
+ Common SQL functions like GetDate, DateDiff, etc are not supported yet
0 commit comments