elasticsql
elasticsql copied to clipboard
convert sql to elasticsearch DSL in golang(go)
nest
请问一下 opendistro的_sql/_translate 您了解吗?我实验sql转换为dsl失败了
select count(DISTINCT deviceId) from uv where deviceId in (select deviceId from uv where userId = 'unknown') and uv.userId != 'unknown';
sql like : select count(id) from A where A.id > 5 group by A.a, A.b; because of `innerMap["terms"] = msi{ "field": colName.Name.String(), "size": 0, }` will gen the dsl like:...
original SQL : ``` sql select title, price from products where title = '%A%' ``` expect like that : ``` json { "_source": [ "title", "price", ], "query": { "bool":...
current: ``` select * from a where id = missing ``` the expected: ``` select * from a where missing(id) = true ```
Does this library have the capability to perform a conversion from DSL to SQL?