Yunfeng,Wu
614a76beea
[Doris on ES] Support compound_and predicate push down to Elasticsearch ( #3277 )
...
Relate Issue: https://github.com/apache/incubator-doris/issues/3248
SQL:
```
select * from test where (k2 = 6 and k3 = 1) or (k2 = 2 and k3 =3 and k4 = 'beijing');
```
Output filter:
```
((#k2:[6 TO 6] #k3:[1 TO 1]) (#(#k2:[2 TO 2] #k3:[3 TO 3]) #k4:beijing))~1
```
SQL:
```
select * from test where (k2 = 6 or k3 = 7) or (k2 = 2 and k3 =3 and (k4 = 'beijing' or k4 = 'zhaochun'));
```
Output filter:
```
(k2:[6 TO 6] k3:[7 TO 7] (#(#k2:[2 TO 2] #k3:[3 TO 3]) #((k4:beijing k4:zhaochun)~1)))~1
```
SQL:
```
select * from test where (k2 = 6 or k3 = 7) or (k2 = 2 and abs(k3) =3 and (k4 = 'beijing' or k4 = 'zhaochun'));
```
Output filter (`abs` can not be pushed down to es, so doris on es would not process this scenario ):
```
match_all
```
2020-04-08 21:09:39 +08:00
..
2020-04-08 21:09:39 +08:00
2019-12-06 17:45:56 +08:00
2018-11-02 10:22:32 +08:00
2020-02-25 13:47:20 +08:00
2020-02-20 20:43:26 +08:00
2019-06-14 23:38:31 +08:00
2019-01-18 09:53:40 +08:00
2019-12-05 21:27:33 +08:00
2019-12-05 21:27:33 +08:00
2019-12-19 21:28:00 +08:00
2019-08-19 12:23:43 +08:00
2020-02-20 20:43:26 +08:00
2020-02-20 20:43:26 +08:00
2020-03-29 14:18:19 +08:00
2019-07-29 23:05:01 +08:00
2020-03-16 20:36:46 +08:00
2019-07-01 18:39:27 +08:00
2020-01-07 19:16:10 +08:00
2019-08-19 12:23:43 +08:00
2019-09-28 00:11:43 +08:00
2019-09-28 00:11:43 +08:00
2020-04-01 20:58:43 +08:00
2019-09-03 10:42:16 +08:00
2018-11-02 10:22:32 +08:00
2019-11-26 22:22:14 +08:00
2019-05-10 16:53:46 +08:00
2019-06-14 23:38:31 +08:00
2018-11-02 10:22:32 +08:00
2019-08-11 12:59:24 +08:00
2019-06-14 23:38:31 +08:00
2019-08-27 14:13:47 +08:00
2019-06-07 22:26:54 +08:00
2019-06-14 23:38:31 +08:00
2018-11-02 10:22:32 +08:00
2020-04-08 21:09:39 +08:00
2019-12-04 12:57:45 +08:00
2019-12-04 12:57:45 +08:00
2019-12-04 12:57:45 +08:00
2019-10-09 22:31:27 +08:00
2020-02-20 23:47:02 +08:00
2020-04-01 20:58:43 +08:00
2020-04-01 20:58:43 +08:00
2019-09-03 10:42:16 +08:00
2019-12-19 16:40:33 +08:00
2020-03-20 19:59:01 +08:00
2020-02-20 20:43:26 +08:00
2019-07-01 18:39:27 +08:00
2019-09-28 00:11:43 +08:00
2020-03-20 10:31:14 +08:00
2020-03-20 20:58:55 +08:00
2020-03-20 10:31:14 +08:00
2020-02-25 13:47:20 +08:00
2020-03-17 10:54:40 +08:00
2020-03-17 10:54:40 +08:00
2020-04-01 20:58:43 +08:00
2020-04-01 20:58:43 +08:00
2018-11-02 10:22:32 +08:00
2019-07-01 18:39:27 +08:00
2019-07-01 18:39:27 +08:00
2019-09-28 00:11:43 +08:00
2019-09-28 00:11:43 +08:00
2019-06-14 23:38:31 +08:00
2019-06-14 23:38:31 +08:00
2020-02-20 20:43:26 +08:00
2019-06-14 23:38:31 +08:00
2018-11-02 10:22:32 +08:00
2019-06-14 23:38:31 +08:00
2018-11-02 10:22:32 +08:00
2019-06-14 23:38:31 +08:00
2019-06-05 12:28:15 +08:00
2019-09-04 21:05:12 +08:00
2020-01-31 21:09:29 +08:00
2019-07-01 18:39:27 +08:00
2019-03-22 17:22:16 +08:00
2020-02-20 20:43:26 +08:00
2019-12-18 12:57:44 +08:00
2020-02-16 19:13:30 +08:00
2019-10-23 18:13:40 +08:00
2019-03-22 17:22:16 +08:00
2020-03-06 18:03:27 +08:00
2020-01-07 14:22:43 +08:00
2020-03-17 17:30:42 +08:00
2020-03-17 17:30:42 +08:00
2020-03-17 17:30:42 +08:00
2019-07-11 16:04:36 +08:00
2020-04-01 18:48:18 +08:00
2020-03-20 19:59:01 +08:00
2020-03-20 19:59:01 +08:00
2020-03-20 19:59:01 +08:00
2020-03-23 15:29:46 +08:00
2020-04-01 18:48:18 +08:00
2020-03-20 19:59:01 +08:00
2019-06-14 23:38:31 +08:00
2018-11-02 10:22:32 +08:00
2019-06-14 23:38:31 +08:00
2018-11-02 10:22:32 +08:00
2018-11-02 10:22:32 +08:00
2019-06-14 23:38:31 +08:00
2020-02-12 21:50:12 +08:00
2020-02-12 21:50:12 +08:00
2018-11-15 16:17:23 +08:00
2019-06-14 23:38:31 +08:00
2018-11-02 10:22:32 +08:00
2018-11-01 09:06:01 +08:00
2019-12-06 17:45:56 +08:00
2018-11-02 10:22:32 +08:00
2019-06-14 23:38:31 +08:00
2019-12-06 17:45:56 +08:00
2019-06-14 23:38:31 +08:00
2018-11-02 10:22:32 +08:00
2020-04-01 20:58:43 +08:00
2020-04-01 20:58:43 +08:00
2019-06-14 23:38:31 +08:00
2018-11-02 10:22:32 +08:00
2019-09-03 10:42:16 +08:00
2019-06-14 23:38:31 +08:00
2019-09-03 10:42:16 +08:00
2018-11-02 10:22:32 +08:00
2019-08-08 16:29:08 +08:00
2020-02-13 10:42:52 +08:00
2020-04-03 16:43:56 +08:00
2019-12-06 21:51:00 +08:00
2019-08-27 22:15:46 +08:00
2019-08-27 22:15:46 +08:00
2020-03-24 10:52:57 +08:00
2020-02-20 20:43:26 +08:00
2018-11-02 10:22:32 +08:00
2018-11-02 10:22:32 +08:00
2020-02-20 20:43:26 +08:00
2020-02-20 20:43:26 +08:00