From a0665bd7f97d40b67d7413085d8b028cc7745fda Mon Sep 17 00:00:00 2001 From: zhongshu Date: Tue, 13 Nov 2018 14:56:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E6=96=B0=E5=A2=9E=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E7=9A=84=E6=8F=8F=E8=BF=B0=E5=8A=A0=E5=88=B0wiki?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 1d3d53ba..52666cb1 100644 --- a/README.md +++ b/README.md @@ -436,7 +436,9 @@ http://localhost:9200/_sql/_explain?sql=select * from indexName limit 10 * SQL Select * SQL Delete * SQL Where + * can use "case when" in where clause * SQL Order By + * can use "case when" in order by clause * SQL Group By * SQL AND & OR * SQL Like @@ -462,9 +464,20 @@ http://localhost:9200/_sql/_explain?sql=select * from indexName limit 10 * SQL log10 * SQL substring * SQL round + * eg: round(10.135, 2) --> 10.14 * SQL sqrt * SQL concat_ws * SQL union and minus +* SQL case when + * can use "in"、"not in" judge in case when clause + * can execute simple calculation in case when clause, eg : case when 1 = 1 then field_1 + field_2 else 0 end +* SQL if + * select if(sex='1','男','女') from t_user; +* SQL limit + * can set aggregation bucket size and shard size by setting limit, shardSize = 20 * bucketSize + * eg: select city,count(*) as user_count from t_user group by city limit 100; + * on the above example, the bucket size is 100, shard size is 20*100 = 2000 + ## JDBC Support (Experimental feature)