elasticsql icon indicating copy to clipboard operation
elasticsql copied to clipboard

convert sql to elasticsearch DSL in golang(go)

Results 13 elasticsql issues
Sort by recently updated
recently updated
newest added

请问一下 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';

question

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":...

bigint 自动转成字符串了, 拿进去查询,查出来的结果是错的

question

current: ``` select * from a where id = missing ``` the expected: ``` select * from a where missing(id) = true ```

enhancement

Does this library have the capability to perform a conversion from DSL to SQL?