mirror of https://github.com/apache/druid.git
Add kttm-nested dataset and some usage sessions of it (#16867)
* Add kttm-nested dataset and some usage sessions of it Squashed commit of the following: commit 3075269bdefbbfeeb3c7958751d9c44dd017944f Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Aug 8 13:48:19 2024 +0000 rename files commit ad8d37a235a89cdf92ea3c1e9fdda9dff87fa7ce Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Aug 8 13:44:09 2024 +0000 rename commit 8fc4efe19eba10e7d6a82042aedec0ec7c04c77c Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Aug 8 13:43:31 2024 +0000 cleanup kttm loader commit 113a4b6f4c0a450581600aa7483a5163ee00e937 Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Aug 8 13:38:10 2024 +0000 weed out infoschema stuff commit 1eb9b5070c16a42a19ab9774d2b0378e090097df Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Aug 8 13:17:27 2024 +0000 reduce crap commit 1745ececc77cae93ed9130fd6e9e83fddd44471a Merge: 9dd2bff6cc 1f8473d82b Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Aug 8 09:49:52 2024 +0000 Merge branch 'quidem-msq' into quidem-qa commit 9dd2bff6ccdb30c927a256ff7ab6ebf491508008 Merge: 7120f84e36fda0d63e44
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Aug 8 09:49:08 2024 +0000 Merge branch 'quidem-record' into quidem-qa commit 1f8473d82be23a57e929fed796e5d5b2dbaccf67 Merge:4e5d7c9c21
6cd8c6be22
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Aug 8 09:46:40 2024 +0000 Merge remote-tracking branch 'apache/master' into quidem-msq commit4e5d7c9c21
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Aug 7 15:58:32 2024 +0000 remove CompositeDruidModule commit6cef3eb6e8
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Aug 7 07:30:25 2024 +0000 disable differently commit73904b520d
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Aug 7 05:48:27 2024 +0000 nested commitad5768e512
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Aug 7 05:43:20 2024 +0000 migrate assume commit039d9c88f8
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 20:15:16 2024 +0000 mask 2 failing testcases commit7a6ba55fa2
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 20:05:00 2024 +0000 Revert "explore failure" This reverts commit5bc32d5678
. commit5bc32d5678
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 20:04:58 2024 +0000 explore failure commit8a92ec6b2e
Merge:dbe2674971
ebea34a814
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 18:46:39 2024 +0000 Merge remote-tracking branch 'apache/master' into quidem-msq commitdbe2674971
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 16:45:43 2024 +0000 remove/cleanup/etc commit23c6f3bd96
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 16:33:16 2024 +0000 use other authmapper commit7740832995
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 16:14:44 2024 +0000 undo commit3e2b59f808
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 16:14:16 2024 +0000 Revert "shared tries" This reverts commit34651e70e5
. commit34651e70e5
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 16:14:12 2024 +0000 shared tries commit449a7f3a73
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 16:13:56 2024 +0000 move stuff commit69a39a42da
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 15:28:58 2024 +0000 Revert "connection supplies properties approach" This reverts commit2700557a55
. commit2700557a55
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 15:28:56 2024 +0000 connection supplies properties approach commit42cc5d62a8
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 15:28:36 2024 +0000 apidoc commitd5b82af4a9
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 14:38:30 2024 +0000 cleanup commit21016a28a2
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 14:21:28 2024 +0000 remove ifs commit3f507d8648
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 14:20:42 2024 +0000 ignore duplicate queries commit19fe5867b1
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 14:13:50 2024 +0000 fix one fixme commit941c39aae5
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 13:59:13 2024 +0000 it does work commit00ee182d75
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 13:55:23 2024 +0000 add fixme/etc commit91d5d14bf1
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 11:44:02 2024 +0000 remove builtintypes commit29b2b559d9
Merge:6d38e8f075
c3aa033e14
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 11:42:04 2024 +0000 Merge remote-tracking branch 'apache/master' into quidem-msq commit6d38e8f075
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 11:41:54 2024 +0000 clenaup commitf867db774a
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 10:31:32 2024 +0000 fix pom commit61c3b16b17
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 09:44:27 2024 +0000 checkstyle commit130252bb5e
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 09:20:13 2024 +0000 fix; move class commit3b77784e6e
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 08:13:25 2024 +0000 add test commit22d8a4b872
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 07:37:24 2024 +0000 add compositemodule commit34ab911399
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 07:25:42 2024 +0000 fix intellij errors commit5e5c94d6d8
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 07:23:08 2024 +0000 cleanup commit93457c6b3e
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 05:50:39 2024 +0000 cleanup commit12cfde805e
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Aug 6 05:50:11 2024 +0000 update commitc8f9147810
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Aug 5 14:23:54 2024 +0000 minor fixes commit6d339d1706
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Aug 5 14:21:25 2024 +0000 rename class commit181458c873
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Aug 5 14:19:52 2024 +0000 mask more commit4c722f271f
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Aug 5 14:15:06 2024 +0000 Revert "this doesnt work" This reverts commit1063948749
. commit1063948749
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Aug 5 14:15:02 2024 +0000 this doesnt work commitc40474285c
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Aug 5 13:49:08 2024 +0000 updates commitf4af51ef7f
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Aug 5 13:41:53 2024 +0000 extend/cleanup/etc commitbc70443c7f
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Aug 5 13:20:13 2024 +0000 update few more commit841ab462dd
Merge:929e68c11a
fda0d63e44
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Aug 5 13:00:59 2024 +0000 Merge branch 'quidem-record' into quidem-msq commitfda0d63e44
Merge:bb23ace518
26e3c44f4b
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Aug 5 13:00:50 2024 +0000 Merge remote-tracking branch 'apache/master' into quidem-record commit929e68c11a
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Aug 5 12:59:50 2024 +0000 undo unrelated commit436ba18815
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Aug 5 12:59:19 2024 +0000 x commit70e46eadb9
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Aug 5 09:07:46 2024 +0000 update commit090f937d58
Merge:5e81a026e9
bb23ace518
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Aug 5 09:03:53 2024 +0000 Merge branch 'quidem-record' into quidem-msq commitbb23ace518
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Aug 5 08:59:48 2024 +0000 builtintypes instead nesteddata commite6add9ea84
Merge:a03fb49f4f
c7eacd079e
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Aug 5 07:04:02 2024 +0000 Merge remote-tracking branch 'apache/master' into quidem-record commit5e81a026e9
Merge:5f6290eb54
a03fb49f4f
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 31 15:27:59 2024 +0000 Merge branch 'quidem-record' into quidem-msq commita03fb49f4f
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jul 30 16:34:06 2024 +0000 remove exception commit5f6290eb54
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jul 30 16:11:57 2024 +0000 use updated hook class commitde207c7295
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jul 30 16:04:11 2024 +0000 move key commitb1ab252b31
Merge:4157a8f105
ca121aa083
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jul 30 16:03:33 2024 +0000 Merge branch 'quidem-record' into quidem-msq commitca121aa083
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jul 30 14:29:02 2024 +0000 remove firehose commiteb2a047e4b
Merge:57980066b3
954aaafe0c
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jul 30 14:24:37 2024 +0000 Merge remote-tracking branch 'apache/master' into quidem-record commit57980066b3
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jul 30 13:30:52 2024 +0000 rename module (cherry picked from commit 8d40cca50a3e4c8098f49f5d588c7b7220b76788) commit7f99ee24d7
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jul 30 14:03:46 2024 +0000 fix copy-pasted crap commitb345dd9d03
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jul 30 13:25:40 2024 +0000 updates/fix style/etc commitdf42245685
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jul 30 13:14:51 2024 +0000 add apidoc/etc commit9ac26e3a89
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jul 30 12:29:36 2024 +0000 wire-in hookdispatcher thru connection/etc commit78b75d3e8e
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jul 30 10:42:41 2024 +0000 move more to non-static commitf6cc540368
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jul 30 10:33:38 2024 +0000 use druidhookdispatcherr#1 commitce667eeb5e
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jul 30 10:22:28 2024 +0000 move stuff around / prepare to unglobalize commit4157a8f105
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jul 30 10:16:03 2024 +0000 add/.etc commited9ef1f635
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Fri Jul 26 03:37:28 2024 +0000 checkstryle commit8bb38a04a5
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Jul 25 03:33:33 2024 +0000 fix FIMXE commitd705c2759b
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Jul 25 03:05:04 2024 +0000 cleanup commita489e19242
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 24 17:26:07 2024 +0000 move to new file commitd010b488a7
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 24 17:23:15 2024 +0000 cleanup commit7428da51de
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 24 17:20:42 2024 +0000 cleanup commit0be1f81d7e
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 24 17:17:15 2024 +0000 remove druidPrettyprinter commit7cfbfdc3ee
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 24 17:14:30 2024 +0000 add DruidPrettyPrinter commite60a200d95
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 24 15:16:39 2024 +0000 format/etc commita9dcb2da46
Merge:31e97324ce
d227029b6b
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 24 10:59:41 2024 +0000 Merge branch 'quidem-record' into quidem-msq commitd227029b6b
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Fri Jul 19 19:16:46 2024 +0000 undo unrealted change commitf7247e1bb7
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Fri Jul 19 15:13:17 2024 +0000 use entryset commitb38935a450
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Fri Jul 19 11:44:23 2024 +0000 add test; fb commit31e97324ce
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Fri Jul 19 11:36:51 2024 +0000 x commite2a54b5758
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Fri Jul 19 08:42:58 2024 +0000 update commit361149b097
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Fri Jul 19 07:29:50 2024 +0000 m commitbc7174cb6a
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Fri Jul 19 04:30:15 2024 +0000 cleanup commit9cf723adae
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Fri Jul 19 04:29:05 2024 +0000 rename commit7a34b6e092
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Fri Jul 19 04:28:02 2024 +0000 cleanup commitd216b934fc
Merge:76ff3f26e1
e388140b2a
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Jul 18 11:41:21 2024 +0000 Merge remote-tracking branch 'kgyrtkirk/quidem-record' into quidem-record commit76ff3f26e1
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Jul 18 07:25:19 2024 +0000 add supress commiteb4fd9f66c
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Jul 18 07:24:56 2024 +0000 removedup commite388140b2a
Author: Benedict Jin <asdf2014@apache.org> Date: Thu Jul 18 15:06:59 2024 +0800 Apply suggestions from code review commit47aeb016df
Merge:70ff2a3e97
06b68b6c89
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Jul 18 05:48:32 2024 +0000 Merge branch 'quidem-record' into quidem-msq commit06b68b6c89
Merge:82436df585
b53c26f5c5
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Jul 18 05:48:13 2024 +0000 Merge remote-tracking branch 'apache/master' into quidem-record commit70ff2a3e97
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 17 19:48:08 2024 +0000 add exploratory msqPlan cmd commit8b26e490e9
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 17 19:30:33 2024 +0000 fix types/resultset/etc commitc59f1adcc8
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 17 16:42:22 2024 +0000 updates commit95ca0a9f5d
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 17 16:41:09 2024 +0000 cleanup commitb100e982a4
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 17 16:40:30 2024 +0000 make/etc commit0811d801fb
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 17 16:33:10 2024 +0000 make query run commit97c32ca3de
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 17 16:19:08 2024 +0000 less crappy way to run it commit6790f9cf8b
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 17 16:08:32 2024 +0000 move stuff commit51d465df6d
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 17 16:04:14 2024 +0000 make engine load via injector for msqdrill commit0eaf4c61b9
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 17 15:51:57 2024 +0000 removePrint commitf3cf778115
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 17 15:48:36 2024 +0000 some stuff commit42b3086512
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 17 15:38:50 2024 +0000 msq-test-0 commit8ada2ff238
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 17 14:44:27 2024 +0000 picked akshat's 3e0202811e05dcd07db5ab47791151fab5dd5772 commit82436df585
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 17 14:34:33 2024 +0000 fix test;disable dep-check for module commit2a590eb3ae
Merge:20c543dfc2
01d67ae543
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 17 13:27:54 2024 +0000 Merge commit 'apache/master^^^' into quidem-record commit 7120f84e368b1fd7045ddbf7fe638565480faefa Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 10 15:48:52 2024 +0000 add resultsets commit ec50ad4f8df7903e621de85c5d48201290c477be Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 10 15:46:24 2024 +0000 x commit 400c797401e519dcae7817e76e78769b198be8e9 Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 10 13:42:30 2024 +0000 expand commit 4ec1f121bb6ed7bfbe883f3e6cf1f2a478218c34 Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jul 10 13:41:30 2024 +0000 from sai commit 3ff292a00f9ecf17fe75af2f5a7a2cb7c4a85635 Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jun 26 13:01:41 2024 +0000 use kttm dataset stored in maven repo commit a56c7534a74b76bdc6dbcccd45f14d87ebf58644 Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jun 26 12:28:39 2024 +0000 update readme commit20c543dfc2
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jun 26 12:27:15 2024 +0000 Revert "Revert "Revert "Revert "Revert "add kttm tx""""" This reverts commitc559bc3422
. commitcc4e0adcbf
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jun 26 12:06:50 2024 +0000 make synch commitb8992434a9
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jun 26 11:13:32 2024 +0000 x commitc559bc3422
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jun 26 10:08:01 2024 +0000 Revert "Revert "Revert "Revert "add kttm tx"""" This reverts commit9a4d04a818
. commite7141e2080
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jun 26 10:07:48 2024 +0000 Revert "stuff" This reverts commit1b7dd8fd3c
. commit1b7dd8fd3c
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jun 26 10:07:47 2024 +0000 stuff commit1a5faf1afb
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 25 08:13:31 2024 +0000 more pomxml stuff commit3dfe5c4a05
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 25 07:08:01 2024 +0000 add reflections commit6c02cbdf4d
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 25 06:38:13 2024 +0000 fixes commit0d76a73c4c
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 25 06:33:45 2024 +0000 remove final commit9a4d04a818
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Jun 20 17:45:08 2024 +0000 Revert "Revert "Revert "add kttm tx""" This reverts commit26a16fb4fe
. commit0af3b910f1
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Jun 20 17:45:01 2024 +0000 update readme commitcefdf96a26
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Jun 20 16:45:39 2024 +0000 prep commit724212381c
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Jun 20 16:40:06 2024 +0000 close stuff commit26a16fb4fe
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Jun 20 16:02:09 2024 +0000 Revert "Revert "add kttm tx"" This reverts commit82f24e61f2
. commit82f24e61f2
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Jun 20 16:01:53 2024 +0000 Revert "add kttm tx" This reverts commiteda48497e2
. commitd329686d5c
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Jun 20 15:37:13 2024 +0000 fix msq test commit6e48cb86d5
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Jun 20 14:41:45 2024 +0000 move annotation commitebb27cf462
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Jun 20 14:40:44 2024 +0000 add extension to disabel when not sql compat commit604910cead
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Jun 20 14:26:48 2024 +0000 cleanup commitb2be5abdd5
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Jun 20 14:21:56 2024 +0000 fix md commiteda48497e2
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu Jun 20 12:55:15 2024 +0000 add kttm tx commit4bd8039715
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jun 19 16:49:24 2024 +0000 fix delegate commit1a0ab2c3b1
Merge:fdf115940b
169a8dbd1a
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed Jun 19 12:59:26 2024 +0000 Merge remote-tracking branch 'apache/master' into quidem-record commitfdf115940b
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 18 16:43:10 2024 +0000 disable record by default commit61dd670784
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 18 16:36:41 2024 +0000 remove not needed commitdffa331018
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 18 16:33:22 2024 +0000 updates/etc commit64a971f893
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 18 16:20:53 2024 +0000 fix autostart commitd14b7374ba
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 18 15:59:29 2024 +0000 add commit74c488679b
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 18 15:43:48 2024 +0000 cleanup commit475f5b5830
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 18 15:43:46 2024 +0000 cleanup commite725df7110
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 18 15:43:35 2024 +0000 fix loader commit9df6f3341a
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 18 14:29:02 2024 +0000 add test-jar ref commit0366192554
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 18 13:07:48 2024 +0000 updates commit75c578ae33
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 18 12:41:21 2024 +0000 cleanup commite81591499c
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 18 08:18:32 2024 +0000 update/etc commit6dd62fb7c6
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Jun 17 16:25:03 2024 +0000 updates commitf5720ce97d
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Jun 17 16:05:29 2024 +0000 u commit7eccf5b518
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Jun 17 15:42:48 2024 +0000 add some validation/etc commite06e54631e
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Jun 17 14:26:48 2024 +0000 fix style; emitter commita9952292f2
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Jun 17 13:44:01 2024 +0000 cleanup commit47696a6108
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Jun 17 13:05:11 2024 +0000 updates commit7a65938fd6
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 11 15:55:55 2024 +0000 use druidhook instead Hook commit6c6053eee0
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 11 15:22:52 2024 +0000 cleanup commit002c3056d4
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 11 15:14:08 2024 +0000 make test indep from java11 commit298a470713
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 11 14:18:47 2024 +0000 try w/o upgrade guice commit2fbd7fe47b
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 11 14:08:36 2024 +0000 add commit0bcfec4c53
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Jun 10 14:05:03 2024 +0000 trial commitd75dcea4dc
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon Jun 10 08:44:08 2024 +0000 undo integration-tests module changes commit90c88aeab0
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue Jun 4 10:16:10 2024 +0000 some pom commitfb4b32e5b7
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed May 29 16:10:38 2024 +0000 updates commitd1b4587eae
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 28 16:38:47 2024 +0000 uu commit88da8d9659
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 28 16:21:04 2024 +0000 rename commitff7abeb0f1
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 28 15:54:29 2024 +0000 small cleanup commit295c09a03c
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 28 15:44:22 2024 +0000 launcher-x commit07e05a664d
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 28 15:30:06 2024 +0000 cleasnup commitff31c14dba
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 28 15:27:18 2024 +0000 clkeaup commita713b663b0
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 28 15:23:04 2024 +0000 undo commit6c264f2977
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 28 15:22:42 2024 +0000 move stuff commitee195719b7
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 28 15:17:07 2024 +0000 inline class commita1b7f981fb
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 28 15:09:42 2024 +0000 cleanup commitb20ee99371
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 28 15:07:09 2024 +0000 clean commit9ae80f05de
Merge:ec2ecde235
206363c255
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon May 27 10:52:01 2024 +0000 Merge remote-tracking branch 'kgyrtkirk/quidem-runner-extension-submit' into quidem-record commitec2ecde235
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon May 27 10:49:38 2024 +0000 updates commit206363c255
Merge:e4ca09d756
4e1de50e30
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon May 27 07:01:43 2024 +0000 Merge remote-tracking branch 'apache/master' into quidem-runner-extension-submit commite4ca09d756
Merge:ad64784a29
44ea4e1c51
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed May 22 18:43:41 2024 +0000 Merge remote-tracking branch 'apache/master' into quidem-runner-extension-submit commit4595b0c128
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 21 14:18:55 2024 +0000 u[pdate commitba09e7d1de
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 21 14:00:02 2024 +0000 add commit08b73d1969
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 21 12:02:46 2024 +0000 Revert "some stuff" This reverts commit52598d3bca
. commit52598d3bca
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 21 12:02:44 2024 +0000 some stuff commitad64784a29
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 21 06:57:26 2024 +0000 fix test expectation commitecdcd0f621
Merge:453c11f9f5
c948201507
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 21 06:53:46 2024 +0000 Merge remote-tracking branch 'apache/master' into quidem-runner-extension-submit commit453c11f9f5
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Fri May 17 07:12:12 2024 +0000 update exceptions;test output commit652cc20597
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Fri May 17 07:00:57 2024 +0000 use lower_camel for config names commit94f93865e8
Merge:b7b73fa7fe
435b58f101
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 14:22:03 2024 +0000 Merge remote-tracking branch 'apache/master' into quidem-runner-extension-submit commite7e119b559
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 13:33:27 2024 +0000 reduce copypaste commitfc9a6c7740
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 13:23:45 2024 +0000 move/etc commitcabf2a31c3
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 13:19:30 2024 +0000 fix commit1d2a79f5be
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 13:01:53 2024 +0000 cleanup commit1fb9fac159
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 12:59:20 2024 +0000 remove cl commit76ffbfb7cf
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 12:50:38 2024 +0000 cl commite2986ae612
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 12:49:10 2024 +0000 cleanup commitf4c73e1499
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 11:31:28 2024 +0000 make old defaults to overides commit59be71c068
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 11:23:26 2024 +0000 add other commit607ef174c5
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 11:18:54 2024 +0000 indent commit3658ab24c3
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 11:18:24 2024 +0000 remove f commitbec1f38a0e
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 11:17:05 2024 +0000 move sqlmodule down commit688611eab3
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 11:11:55 2024 +0000 undo commit93892b6524
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 11:11:03 2024 +0000 undo some commitb63a80e5b7
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 11:01:39 2024 +0000 passes basic test commit118eb61939
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 10:31:38 2024 +0000 there - with 1 boot commit28ea884e19
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 10:01:22 2024 +0000 almost ready? commit27735f2621
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 09:50:10 2024 +0000 move disco commitcab3d945be
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 09:48:18 2024 +0000 up commitc9638b7836
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 09:44:16 2024 +0000 update commit7e10df1ffa
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 09:33:51 2024 +0000 ... commit4a47b0229e
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 09:31:21 2024 +0000 no roles commit5f552a2997
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 09:30:41 2024 +0000 c commit074161dfde
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Thu May 16 05:53:42 2024 +0000 add some service crap commit55b2051f9d
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed May 15 16:23:11 2024 +0000 workinhg stuff commit8ee41f58d0
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed May 15 15:14:43 2024 +0000 it does work commitd4b052a579
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed May 15 11:57:13 2024 +0000 stuff commit73011267af
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Wed May 15 10:34:48 2024 +0000 triaks commita16f982699
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 14 16:04:19 2024 +0000 remove crap commit43fd8af63c
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 14 09:39:04 2024 +0000 Revert "add" This reverts commit3fbb3cb853
. commit3fbb3cb853
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 14 09:39:02 2024 +0000 add commitb7b73fa7fe
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 14 08:53:01 2024 +0000 fix context key order commit9578953678
Merge:3132c12781
18a4722d11
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 14 07:36:48 2024 +0000 Merge remote-tracking branch 'apache/master' into quidem-runner-extension-submit commit3132c12781
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Tue May 14 07:36:07 2024 +0000 remove unnecessary \\ commite36c46a85a
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Mon May 13 14:11:19 2024 +0000 fix import style fixes clenaup commite13d560b6e
Author: Zoltan Haindrich <kirk@rxd.hu> Date: Fri May 10 13:27:47 2024 +0000 Enable quidem shadowing for decoupled testcases * Altered `QueryTestBuilder` to be able to switch to a backing quidem test * added a small crc to ensure that the shadow testcase does not deviate from the original one * Packaged all decoupled related things into a a single `DecoupledExtension` to reduce copy-paste * `DecoupledTestConfig#quidemReason` must describe why its being used * `DecoupledTestConfig#separateDefaultModeTest` can be used to make multiple case files based on `NullHandling` state * fixed a cosmetic bug during decoupled join translation * enhanced `!druidPlan` to report the final logical plan in non-decoupled mode as well * add check to ensure that only supported params are present in a druidtest uri * enabled shadow testcases for previously disabled testcases * correct resultset * update column types * add dataset scaler * scaled? * disable scaler * missed updates * update README * remove ScaledResoureInputDataSource for now * Revert "remove ScaledResoureInputDataSource for now" This reverts commitdd1905d2ef
. * use fraction * use fraction+maxRows * remove maxRows * Revert "remove maxRows" This reverts commit4d4de51f4f
. * remove NoopRowIngestionMeters.INSTANCE * update test * Revert "Revert "remove maxRows"" This reverts commite366192fb5
. * more-wood/etc * instead of scaled+etc; load and smoke test the supplier for defaults mode * Update quidem-ut/README.md Co-authored-by: Abhishek Agarwal <1477457+abhishekagarwal87@users.noreply.github.com> * add comment to all iq files; move notes into a README file next to the iq files * add hdr to readme * Update quidem-ut/src/test/quidem/org.apache.druid.quidem.QTest/README.generated Co-authored-by: Abhishek Agarwal <1477457+abhishekagarwal87@users.noreply.github.com> --------- Co-authored-by: Abhishek Agarwal <1477457+abhishekagarwal87@users.noreply.github.com>
This commit is contained in:
parent
d77637344d
commit
ca96629207
|
@ -22,6 +22,9 @@
|
|||
Enables to write sql level tests easily.
|
||||
Can be used to write tests against existing test backends (ComponentSupplier) - by doing so the testcases can be moved closer to the exercised codes.
|
||||
|
||||
These tests might come from real usages of Druid by some external tool - by utilizing the capture mode of this module iq tests could be captured and validated later that they retain their results.
|
||||
By adding tests for those here could act as an early warning that something might have changed.
|
||||
|
||||
## Usage
|
||||
|
||||
### Install java&maven (if needed)
|
||||
|
@ -44,8 +47,6 @@ git clone https://github.com/apache/druid
|
|||
```
|
||||
|
||||
|
||||
|
||||
|
||||
### Running these tests
|
||||
|
||||
* CI execution happens by a standard JUnit test `QTest` in this module
|
||||
|
@ -72,3 +73,5 @@ git clone https://github.com/apache/druid
|
|||
* running `dev/quidem -Dquidem.overwrite` updates the resultsets of all `iq` files around there
|
||||
* rename the testfile to have a more descriptive name
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
<id>confluent</id>
|
||||
<url>https://packages.confluent.io/maven/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>datasets</id>
|
||||
<url>https://raw.githubusercontent.com/kgyrtkirk/datasets/repo/</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<properties>
|
||||
|
@ -488,6 +492,11 @@
|
|||
<version>0.9.3</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.kgyrtkirk.datasets</groupId>
|
||||
<artifactId>kttm-nested</artifactId>
|
||||
<version>0.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.amazonaws</groupId>
|
||||
<artifactId>aws-java-sdk-sts</artifactId>
|
||||
|
|
|
@ -0,0 +1,153 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.apache.druid.quidem;
|
||||
|
||||
import com.google.inject.Injector;
|
||||
import org.apache.druid.data.input.InputSource;
|
||||
import org.apache.druid.data.input.ResourceInputSource;
|
||||
import org.apache.druid.data.input.impl.DimensionSchema;
|
||||
import org.apache.druid.data.input.impl.DimensionsSpec;
|
||||
import org.apache.druid.data.input.impl.LongDimensionSchema;
|
||||
import org.apache.druid.data.input.impl.StringDimensionSchema;
|
||||
import org.apache.druid.data.input.impl.TimestampSpec;
|
||||
import org.apache.druid.java.util.common.FileUtils;
|
||||
import org.apache.druid.java.util.common.Intervals;
|
||||
import org.apache.druid.java.util.common.StringUtils;
|
||||
import org.apache.druid.query.NestedDataTestUtils;
|
||||
import org.apache.druid.query.QueryRunnerFactoryConglomerate;
|
||||
import org.apache.druid.segment.AutoTypeColumnSchema;
|
||||
import org.apache.druid.segment.IndexBuilder;
|
||||
import org.apache.druid.segment.IndexSpec;
|
||||
import org.apache.druid.segment.QueryableIndex;
|
||||
import org.apache.druid.segment.TestIndex;
|
||||
import org.apache.druid.segment.incremental.IncrementalIndex;
|
||||
import org.apache.druid.segment.incremental.IncrementalIndexSchema;
|
||||
import org.apache.druid.segment.join.JoinableFactoryWrapper;
|
||||
import org.apache.druid.segment.writeout.OffHeapMemorySegmentWriteOutMediumFactory;
|
||||
import org.apache.druid.server.SpecificSegmentsQuerySegmentWalker;
|
||||
import org.apache.druid.sql.calcite.TempDirProducer;
|
||||
import org.apache.druid.sql.calcite.util.SqlTestFramework.StandardComponentSupplier;
|
||||
import org.apache.druid.timeline.DataSegment;
|
||||
import org.apache.druid.timeline.partition.NumberedShardSpec;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
public class KttmNestedComponentSupplier extends StandardComponentSupplier
|
||||
{
|
||||
public KttmNestedComponentSupplier(TempDirProducer tempDirProducer)
|
||||
{
|
||||
super(tempDirProducer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SpecificSegmentsQuerySegmentWalker createQuerySegmentWalker(QueryRunnerFactoryConglomerate conglomerate,
|
||||
JoinableFactoryWrapper joinableFactory, Injector injector)
|
||||
{
|
||||
SpecificSegmentsQuerySegmentWalker walker = super.createQuerySegmentWalker(conglomerate, joinableFactory, injector);
|
||||
QueryableIndex idx = makeKttmIndex(tempDirProducer.newTempFolder());
|
||||
|
||||
walker.add(
|
||||
DataSegment.builder()
|
||||
.dataSource("kttm_nested")
|
||||
.interval(Intervals.of("2019-08-25/2019-08-26"))
|
||||
.version("1")
|
||||
.shardSpec(new NumberedShardSpec(0, 0))
|
||||
.size(0)
|
||||
.build(),
|
||||
idx
|
||||
);
|
||||
return walker;
|
||||
}
|
||||
|
||||
public QueryableIndex makeKttmIndex(File tmpDir)
|
||||
{
|
||||
try {
|
||||
final File directory = new File(tmpDir, StringUtils.format("kttm-index-%s", UUID.randomUUID()));
|
||||
final IncrementalIndex index = makeKttmNestedIndex();
|
||||
TestIndex.INDEX_MERGER.persist(index, directory, IndexSpec.DEFAULT, null);
|
||||
return TestIndex.INDEX_IO.loadIndex(directory);
|
||||
}
|
||||
catch (IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
public IncrementalIndex makeKttmNestedIndex()
|
||||
{
|
||||
final List<DimensionSchema> dimensions = Arrays.asList(
|
||||
new StringDimensionSchema("session"),
|
||||
new StringDimensionSchema("number"),
|
||||
new AutoTypeColumnSchema("event", null),
|
||||
new AutoTypeColumnSchema("agent", null),
|
||||
new StringDimensionSchema("client_ip"),
|
||||
new StringDimensionSchema("geo_ip"),
|
||||
new StringDimensionSchema("language"),
|
||||
new StringDimensionSchema("adblock_list"),
|
||||
new StringDimensionSchema("app_version"),
|
||||
new StringDimensionSchema("path"),
|
||||
new StringDimensionSchema("loaded_image"),
|
||||
new StringDimensionSchema("referrer"),
|
||||
new StringDimensionSchema("referrer_host"),
|
||||
new StringDimensionSchema("server_ip"),
|
||||
new StringDimensionSchema("screen"),
|
||||
new StringDimensionSchema("window"),
|
||||
new LongDimensionSchema("session_length"),
|
||||
new StringDimensionSchema("timezone"),
|
||||
new LongDimensionSchema("timezone_offset")
|
||||
);
|
||||
|
||||
final File tmpDir;
|
||||
try {
|
||||
tmpDir = FileUtils.createTempDir("test-index-input-source");
|
||||
try {
|
||||
InputSource inputSource = ResourceInputSource.of(
|
||||
TestIndex.class.getClassLoader(),
|
||||
"kttm-nested-v2-2019-08-25.json"
|
||||
);
|
||||
return IndexBuilder
|
||||
.create()
|
||||
.segmentWriteOutMediumFactory(OffHeapMemorySegmentWriteOutMediumFactory.instance())
|
||||
.schema(
|
||||
new IncrementalIndexSchema.Builder()
|
||||
.withRollup(false)
|
||||
.withTimestampSpec(new TimestampSpec("timestamp", null, null))
|
||||
.withDimensionsSpec(new DimensionsSpec(dimensions))
|
||||
.build()
|
||||
)
|
||||
.inputSource(
|
||||
inputSource
|
||||
)
|
||||
.inputFormat(NestedDataTestUtils.DEFAULT_JSON_INPUT_FORMAT)
|
||||
.inputTmpDir(new File(tmpDir, "tmpKttm"))
|
||||
.buildIncrementalIndex();
|
||||
}
|
||||
finally {
|
||||
FileUtils.deleteDirectory(tmpDir);
|
||||
}
|
||||
}
|
||||
catch (IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,51 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.apache.druid.quidem;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import org.apache.druid.common.config.NullHandling;
|
||||
import org.apache.druid.sql.calcite.BaseCalciteQueryTest;
|
||||
import org.apache.druid.sql.calcite.SqlTestFrameworkConfig.ComponentSupplier;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIf;
|
||||
|
||||
@EnabledIf(value = "isReplaceWithDefault", disabledReason = "Needed to provide coverage in defaults mode")
|
||||
@ComponentSupplier(KttmNestedComponentSupplier.class)
|
||||
public class KttmNestedComponentSupplierTest extends BaseCalciteQueryTest
|
||||
{
|
||||
static {
|
||||
NullHandling.initializeForTests();
|
||||
}
|
||||
|
||||
public static boolean isReplaceWithDefault()
|
||||
{
|
||||
return NullHandling.replaceWithDefault();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDataset()
|
||||
{
|
||||
msqIncompatible();
|
||||
testBuilder()
|
||||
.sql("SELECT count(1),sum(session_length) from kttm_nested")
|
||||
.expectedResults(ImmutableList.of(new Object[] {465346L, 153573448620L}))
|
||||
.run();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
<!--
|
||||
~ Licensed to the Apache Software Foundation (ASF) under one
|
||||
~ or more contributor license agreements. See the NOTICE file
|
||||
~ distributed with this work for additional information
|
||||
~ regarding copyright ownership. The ASF licenses this file
|
||||
~ to you under the Apache License, Version 2.0 (the
|
||||
~ "License"); you may not use this file except in compliance
|
||||
~ with the License. You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing,
|
||||
~ software distributed under the License is distributed on an
|
||||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
~ KIND, either express or implied. See the License for the
|
||||
~ specific language governing permissions and limitations
|
||||
~ under the License.
|
||||
-->
|
||||
|
||||
Tests mentioning this file contain queries which were recorded while using a BI tool that was issuing druid queries behind the scenes.
|
||||
|
||||
As these tests are auto-generated there shouldn't be a need to ever change the tests manually - unless there is some backward incompatible change.
|
|
@ -0,0 +1,570 @@
|
|||
#The queries in this file were generated; see README.generated
|
||||
#started Wed Jul 10 19:21:24 IST 2024
|
||||
!use druidtest:///?componentSupplier=KttmNestedComponentSupplier
|
||||
!set outputformat mysql
|
||||
# Wed Jul 10 19:23:06 IST 2024
|
||||
SELECT
|
||||
MAX(CAST(t."__time" AS TIMESTAMP)) AS "__VALUE__"
|
||||
FROM "kttm_nested" AS t
|
||||
GROUP BY ();
|
||||
+-------------------------+
|
||||
| __VALUE__ |
|
||||
+-------------------------+
|
||||
| 2019-08-25 23:59:59.686 |
|
||||
+-------------------------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:00 IST 2024
|
||||
SELECT
|
||||
MAX(CAST(t."__time" AS TIMESTAMP)) AS "__VALUE__"
|
||||
FROM "kttm_nested" AS t
|
||||
GROUP BY ();
|
||||
+-------------------------+
|
||||
| __VALUE__ |
|
||||
+-------------------------+
|
||||
| 2019-08-25 23:59:59.686 |
|
||||
+-------------------------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:00 IST 2024
|
||||
SELECT
|
||||
MAX(CAST(t."__time" AS TIMESTAMP)) AS "__VALUE__"
|
||||
FROM "kttm_nested" AS t
|
||||
GROUP BY ();
|
||||
+-------------------------+
|
||||
| __VALUE__ |
|
||||
+-------------------------+
|
||||
| 2019-08-25 23:59:59.686 |
|
||||
+-------------------------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:01 IST 2024
|
||||
SELECT
|
||||
(COUNT(*)) AS "__VALUE__"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00')
|
||||
GROUP BY ();
|
||||
+-----------+
|
||||
| __VALUE__ |
|
||||
+-----------+
|
||||
| 465346 |
|
||||
+-----------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:07 IST 2024
|
||||
SELECT
|
||||
CAST(t."adblock_list" AS VARCHAR) AS "adblock_list",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00')
|
||||
GROUP BY 1
|
||||
ORDER BY "count" DESC
|
||||
LIMIT 1000;
|
||||
+----------------------------+--------+
|
||||
| adblock_list | count |
|
||||
+----------------------------+--------+
|
||||
| NoAdblock | 424282 |
|
||||
| EasyList | 40579 |
|
||||
| EasyList,AntiAdblockKiller | 401 |
|
||||
| AntiAdblockKiller | 84 |
|
||||
+----------------------------+--------+
|
||||
(4 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:07 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00')
|
||||
GROUP BY 1
|
||||
ORDER BY "count" DESC
|
||||
LIMIT 1000;
|
||||
+-----------------------+--------+
|
||||
| Browser | count |
|
||||
+-----------------------+--------+
|
||||
| Chrome | 232603 |
|
||||
| Mobile Safari | 113617 |
|
||||
| Chrome Mobile | 60173 |
|
||||
| Safari | 38323 |
|
||||
| Firefox | 8307 |
|
||||
| Yandex.Browser | 4258 |
|
||||
| Opera | 2819 |
|
||||
| IE | 1238 |
|
||||
| Mozilla | 1224 |
|
||||
| Silk | 1050 |
|
||||
| Yandex.Browser mobile | 583 |
|
||||
| Mobile Firefox | 253 |
|
||||
| Puffin | 240 |
|
||||
| Chromium | 149 |
|
||||
| Waterfox | 129 |
|
||||
| Opera Mobile | 78 |
|
||||
| PS4 Web browser | 77 |
|
||||
| Android browser | 52 |
|
||||
| Sogou Explorer | 51 |
|
||||
| IE Mobile | 35 |
|
||||
| Maxthon | 34 |
|
||||
| PS Vita browser | 19 |
|
||||
| unknown | 17 |
|
||||
| | 10 |
|
||||
| Apple Mail | 7 |
|
||||
+-----------------------+--------+
|
||||
(25 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:07 IST 2024
|
||||
SELECT
|
||||
CAST(t."adblock_list" AS VARCHAR) AS "adblock_list",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(t."adblock_list" AS VARCHAR) IN ('NoAdblock','EasyList','EasyList,AntiAdblockKiller','AntiAdblockKiller'))
|
||||
GROUP BY 1;
|
||||
+----------------------------+--------+
|
||||
| adblock_list | count |
|
||||
+----------------------------+--------+
|
||||
| AntiAdblockKiller | 84 |
|
||||
| EasyList | 40579 |
|
||||
| EasyList,AntiAdblockKiller | 401 |
|
||||
| NoAdblock | 424282 |
|
||||
+----------------------------+--------+
|
||||
(4 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:07 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
CAST(t."adblock_list" AS VARCHAR) AS "adblock_list",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(t."adblock_list" AS VARCHAR) IN ('NoAdblock','EasyList','EasyList,AntiAdblockKiller','AntiAdblockKiller')) AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile','Safari','Firefox','Yandex.Browser','Opera','IE','Mozilla','Silk','Yandex.Browser mobile','Mobile Firefox','Puffin'))
|
||||
GROUP BY 1,2;
|
||||
+-----------------------+----------------------------+--------+
|
||||
| Browser | adblock_list | count |
|
||||
+-----------------------+----------------------------+--------+
|
||||
| Chrome | AntiAdblockKiller | 23 |
|
||||
| Chrome | EasyList | 34745 |
|
||||
| Chrome | EasyList,AntiAdblockKiller | 258 |
|
||||
| Chrome | NoAdblock | 197577 |
|
||||
| Chrome Mobile | AntiAdblockKiller | 3 |
|
||||
| Chrome Mobile | EasyList | 146 |
|
||||
| Chrome Mobile | EasyList,AntiAdblockKiller | 11 |
|
||||
| Chrome Mobile | NoAdblock | 60013 |
|
||||
| Firefox | EasyList | 3014 |
|
||||
| Firefox | EasyList,AntiAdblockKiller | 39 |
|
||||
| Firefox | NoAdblock | 5254 |
|
||||
| IE | AntiAdblockKiller | 28 |
|
||||
| IE | NoAdblock | 1210 |
|
||||
| Mobile Firefox | EasyList | 4 |
|
||||
| Mobile Firefox | NoAdblock | 249 |
|
||||
| Mobile Safari | AntiAdblockKiller | 15 |
|
||||
| Mobile Safari | EasyList | 131 |
|
||||
| Mobile Safari | EasyList,AntiAdblockKiller | 40 |
|
||||
| Mobile Safari | NoAdblock | 113431 |
|
||||
| Mozilla | AntiAdblockKiller | 15 |
|
||||
| Mozilla | NoAdblock | 1209 |
|
||||
| Opera | EasyList | 1581 |
|
||||
| Opera | NoAdblock | 1238 |
|
||||
| Puffin | NoAdblock | 240 |
|
||||
| Safari | EasyList | 348 |
|
||||
| Safari | NoAdblock | 37975 |
|
||||
| Silk | NoAdblock | 1050 |
|
||||
| Yandex.Browser | EasyList | 502 |
|
||||
| Yandex.Browser | NoAdblock | 3756 |
|
||||
| Yandex.Browser mobile | NoAdblock | 583 |
|
||||
+-----------------------+----------------------------+--------+
|
||||
(30 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:09 IST 2024
|
||||
SELECT
|
||||
CAST(t."adblock_list" AS VARCHAR) AS "adblock_list",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(t."adblock_list" AS VARCHAR) IN ('NoAdblock','EasyList','EasyList,AntiAdblockKiller','AntiAdblockKiller')) AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chromium'))
|
||||
GROUP BY 1;
|
||||
+----------------------------+-------+
|
||||
| adblock_list | count |
|
||||
+----------------------------+-------+
|
||||
| EasyList | 78 |
|
||||
| EasyList,AntiAdblockKiller | 35 |
|
||||
| NoAdblock | 36 |
|
||||
+----------------------------+-------+
|
||||
(3 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:10 IST 2024
|
||||
SELECT
|
||||
CAST(t."adblock_list" AS VARCHAR) AS "adblock_list",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(t."adblock_list" AS VARCHAR) IN ('NoAdblock','EasyList','EasyList,AntiAdblockKiller','AntiAdblockKiller')) AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Waterfox'))
|
||||
GROUP BY 1;
|
||||
+----------------------------+-------+
|
||||
| adblock_list | count |
|
||||
+----------------------------+-------+
|
||||
| EasyList,AntiAdblockKiller | 17 |
|
||||
| NoAdblock | 112 |
|
||||
+----------------------------+-------+
|
||||
(2 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:10 IST 2024
|
||||
SELECT
|
||||
CAST(t."adblock_list" AS VARCHAR) AS "adblock_list",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(t."adblock_list" AS VARCHAR) IN ('NoAdblock','EasyList','EasyList,AntiAdblockKiller','AntiAdblockKiller')) AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Opera Mobile'))
|
||||
GROUP BY 1;
|
||||
+--------------+-------+
|
||||
| adblock_list | count |
|
||||
+--------------+-------+
|
||||
| NoAdblock | 78 |
|
||||
+--------------+-------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:10 IST 2024
|
||||
SELECT
|
||||
CAST(t."adblock_list" AS VARCHAR) AS "adblock_list",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(t."adblock_list" AS VARCHAR) IN ('NoAdblock','EasyList','EasyList,AntiAdblockKiller','AntiAdblockKiller')) AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='PS4 Web browser'))
|
||||
GROUP BY 1;
|
||||
+--------------+-------+
|
||||
| adblock_list | count |
|
||||
+--------------+-------+
|
||||
| NoAdblock | 77 |
|
||||
+--------------+-------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:10 IST 2024
|
||||
SELECT
|
||||
CAST(t."adblock_list" AS VARCHAR) AS "adblock_list",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(t."adblock_list" AS VARCHAR) IN ('NoAdblock','EasyList','EasyList,AntiAdblockKiller','AntiAdblockKiller')) AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Android browser'))
|
||||
GROUP BY 1;
|
||||
+--------------+-------+
|
||||
| adblock_list | count |
|
||||
+--------------+-------+
|
||||
| NoAdblock | 52 |
|
||||
+--------------+-------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:14 IST 2024
|
||||
SELECT
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 01:00:00'))) AS "v0",
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-25 01:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 02:00:00'))) AS "v1"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 02:00:00')
|
||||
GROUP BY ();
|
||||
+-------+-------+
|
||||
| v0 | v1 |
|
||||
+-------+-------+
|
||||
| 13587 | 13441 |
|
||||
+-------+-------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:14 IST 2024
|
||||
SELECT
|
||||
TIME_FLOOR(CAST(t."__time" AS TIMESTAMP), 'PT1H', NULL, 'Etc/UTC') AS "__time",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-25 02:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00')
|
||||
GROUP BY 1;
|
||||
+-------------------------+-------+
|
||||
| __time | count |
|
||||
+-------------------------+-------+
|
||||
| 2019-08-25 02:00:00.000 | 15005 |
|
||||
| 2019-08-25 03:00:00.000 | 12878 |
|
||||
| 2019-08-25 04:00:00.000 | 9083 |
|
||||
| 2019-08-25 05:00:00.000 | 8056 |
|
||||
| 2019-08-25 06:00:00.000 | 6147 |
|
||||
| 2019-08-25 07:00:00.000 | 5557 |
|
||||
| 2019-08-25 08:00:00.000 | 5742 |
|
||||
| 2019-08-25 09:00:00.000 | 6104 |
|
||||
| 2019-08-25 10:00:00.000 | 6456 |
|
||||
| 2019-08-25 11:00:00.000 | 6716 |
|
||||
| 2019-08-25 12:00:00.000 | 9166 |
|
||||
| 2019-08-25 13:00:00.000 | 13302 |
|
||||
| 2019-08-25 14:00:00.000 | 17930 |
|
||||
| 2019-08-25 15:00:00.000 | 12697 |
|
||||
| 2019-08-25 16:00:00.000 | 35474 |
|
||||
| 2019-08-25 17:00:00.000 | 57697 |
|
||||
| 2019-08-25 18:00:00.000 | 47674 |
|
||||
| 2019-08-25 19:00:00.000 | 45152 |
|
||||
| 2019-08-25 20:00:00.000 | 43502 |
|
||||
| 2019-08-25 21:00:00.000 | 29818 |
|
||||
| 2019-08-25 22:00:00.000 | 23681 |
|
||||
| 2019-08-25 23:00:00.000 | 20481 |
|
||||
+-------------------------+-------+
|
||||
(22 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:23 IST 2024
|
||||
SELECT
|
||||
TIME_FLOOR(CAST(t."__time" AS TIMESTAMP), 'PT1H', NULL, 'Etc/UTC') AS "__time",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 19:00:00')
|
||||
GROUP BY 1;
|
||||
+-------------------------+-------+
|
||||
| __time | count |
|
||||
+-------------------------+-------+
|
||||
| 2019-08-25 00:00:00.000 | 13587 |
|
||||
| 2019-08-25 01:00:00.000 | 13441 |
|
||||
| 2019-08-25 02:00:00.000 | 15005 |
|
||||
| 2019-08-25 03:00:00.000 | 12878 |
|
||||
| 2019-08-25 04:00:00.000 | 9083 |
|
||||
| 2019-08-25 05:00:00.000 | 8056 |
|
||||
| 2019-08-25 06:00:00.000 | 6147 |
|
||||
| 2019-08-25 07:00:00.000 | 5557 |
|
||||
| 2019-08-25 08:00:00.000 | 5742 |
|
||||
| 2019-08-25 09:00:00.000 | 6104 |
|
||||
| 2019-08-25 10:00:00.000 | 6456 |
|
||||
| 2019-08-25 11:00:00.000 | 6716 |
|
||||
| 2019-08-25 12:00:00.000 | 9166 |
|
||||
| 2019-08-25 13:00:00.000 | 13302 |
|
||||
| 2019-08-25 14:00:00.000 | 17930 |
|
||||
| 2019-08-25 15:00:00.000 | 12697 |
|
||||
| 2019-08-25 16:00:00.000 | 35474 |
|
||||
| 2019-08-25 17:00:00.000 | 57697 |
|
||||
| 2019-08-25 18:00:00.000 | 47674 |
|
||||
+-------------------------+-------+
|
||||
(19 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:30 IST 2024
|
||||
SELECT
|
||||
TIME_FLOOR(CAST(t."__time" AS TIMESTAMP), 'PT1H', NULL, 'Etc/UTC') AS "__time",
|
||||
CAST(t."adblock_list" AS VARCHAR) AS "adblock_list",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 17:00:00') AND CAST(t."adblock_list" AS VARCHAR) IN ('NoAdblock','EasyList','EasyList,AntiAdblockKiller','AntiAdblockKiller'))
|
||||
GROUP BY 1,2;
|
||||
+-------------------------+----------------------------+-------+
|
||||
| __time | adblock_list | count |
|
||||
+-------------------------+----------------------------+-------+
|
||||
| 2019-08-25 00:00:00.000 | AntiAdblockKiller | 1 |
|
||||
| 2019-08-25 00:00:00.000 | EasyList | 1620 |
|
||||
| 2019-08-25 00:00:00.000 | NoAdblock | 11966 |
|
||||
| 2019-08-25 01:00:00.000 | AntiAdblockKiller | 15 |
|
||||
| 2019-08-25 01:00:00.000 | EasyList | 1511 |
|
||||
| 2019-08-25 01:00:00.000 | EasyList,AntiAdblockKiller | 27 |
|
||||
| 2019-08-25 01:00:00.000 | NoAdblock | 11888 |
|
||||
| 2019-08-25 02:00:00.000 | EasyList | 1551 |
|
||||
| 2019-08-25 02:00:00.000 | EasyList,AntiAdblockKiller | 25 |
|
||||
| 2019-08-25 02:00:00.000 | NoAdblock | 13429 |
|
||||
| 2019-08-25 03:00:00.000 | EasyList | 1104 |
|
||||
| 2019-08-25 03:00:00.000 | EasyList,AntiAdblockKiller | 7 |
|
||||
| 2019-08-25 03:00:00.000 | NoAdblock | 11767 |
|
||||
| 2019-08-25 04:00:00.000 | AntiAdblockKiller | 3 |
|
||||
| 2019-08-25 04:00:00.000 | EasyList | 804 |
|
||||
| 2019-08-25 04:00:00.000 | NoAdblock | 8276 |
|
||||
| 2019-08-25 05:00:00.000 | EasyList | 1034 |
|
||||
| 2019-08-25 05:00:00.000 | EasyList,AntiAdblockKiller | 1 |
|
||||
| 2019-08-25 05:00:00.000 | NoAdblock | 7021 |
|
||||
| 2019-08-25 06:00:00.000 | EasyList | 679 |
|
||||
| 2019-08-25 06:00:00.000 | EasyList,AntiAdblockKiller | 22 |
|
||||
| 2019-08-25 06:00:00.000 | NoAdblock | 5446 |
|
||||
| 2019-08-25 07:00:00.000 | EasyList | 488 |
|
||||
| 2019-08-25 07:00:00.000 | EasyList,AntiAdblockKiller | 1 |
|
||||
| 2019-08-25 07:00:00.000 | NoAdblock | 5068 |
|
||||
| 2019-08-25 08:00:00.000 | EasyList | 711 |
|
||||
| 2019-08-25 08:00:00.000 | EasyList,AntiAdblockKiller | 29 |
|
||||
| 2019-08-25 08:00:00.000 | NoAdblock | 5002 |
|
||||
| 2019-08-25 09:00:00.000 | AntiAdblockKiller | 2 |
|
||||
| 2019-08-25 09:00:00.000 | EasyList | 879 |
|
||||
| 2019-08-25 09:00:00.000 | EasyList,AntiAdblockKiller | 4 |
|
||||
| 2019-08-25 09:00:00.000 | NoAdblock | 5219 |
|
||||
| 2019-08-25 10:00:00.000 | EasyList | 713 |
|
||||
| 2019-08-25 10:00:00.000 | EasyList,AntiAdblockKiller | 1 |
|
||||
| 2019-08-25 10:00:00.000 | NoAdblock | 5742 |
|
||||
| 2019-08-25 11:00:00.000 | EasyList | 733 |
|
||||
| 2019-08-25 11:00:00.000 | EasyList,AntiAdblockKiller | 1 |
|
||||
| 2019-08-25 11:00:00.000 | NoAdblock | 5982 |
|
||||
| 2019-08-25 12:00:00.000 | EasyList | 1361 |
|
||||
| 2019-08-25 12:00:00.000 | NoAdblock | 7805 |
|
||||
| 2019-08-25 13:00:00.000 | EasyList | 1095 |
|
||||
| 2019-08-25 13:00:00.000 | NoAdblock | 12207 |
|
||||
| 2019-08-25 14:00:00.000 | EasyList | 1655 |
|
||||
| 2019-08-25 14:00:00.000 | EasyList,AntiAdblockKiller | 4 |
|
||||
| 2019-08-25 14:00:00.000 | NoAdblock | 16271 |
|
||||
| 2019-08-25 15:00:00.000 | EasyList | 1470 |
|
||||
| 2019-08-25 15:00:00.000 | EasyList,AntiAdblockKiller | 70 |
|
||||
| 2019-08-25 15:00:00.000 | NoAdblock | 11157 |
|
||||
| 2019-08-25 16:00:00.000 | AntiAdblockKiller | 22 |
|
||||
| 2019-08-25 16:00:00.000 | EasyList | 2016 |
|
||||
| 2019-08-25 16:00:00.000 | EasyList,AntiAdblockKiller | 44 |
|
||||
| 2019-08-25 16:00:00.000 | NoAdblock | 33392 |
|
||||
+-------------------------+----------------------------+-------+
|
||||
(52 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:36 IST 2024
|
||||
SELECT
|
||||
CAST(t."adblock_list" AS VARCHAR) AS "adblock_list",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE ((TIMESTAMP '2019-08-25 02:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 03:00:00') AND (CAST(t."adblock_list" AS VARCHAR)='AntiAdblockKiller'))
|
||||
GROUP BY 1
|
||||
ORDER BY "count" DESC
|
||||
LIMIT 1000;
|
||||
+--------------+-------+
|
||||
| adblock_list | count |
|
||||
+--------------+-------+
|
||||
+--------------+-------+
|
||||
(0 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:36 IST 2024
|
||||
SELECT
|
||||
(COUNT(*)) AS "__VALUE__"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE ((TIMESTAMP '2019-08-25 02:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 03:00:00') AND (CAST(t."adblock_list" AS VARCHAR)='AntiAdblockKiller'))
|
||||
GROUP BY ();
|
||||
+-----------+
|
||||
| __VALUE__ |
|
||||
+-----------+
|
||||
| 0 |
|
||||
+-----------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:36 IST 2024
|
||||
SELECT
|
||||
TIME_FLOOR(CAST(t."__time" AS TIMESTAMP), 'PT1M', NULL, 'Etc/UTC') AS "__time",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE ((TIMESTAMP '2019-08-25 02:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 02:17:00') AND (CAST(t."adblock_list" AS VARCHAR)='AntiAdblockKiller'))
|
||||
GROUP BY 1;
|
||||
+--------+-------+
|
||||
| __time | count |
|
||||
+--------+-------+
|
||||
+--------+-------+
|
||||
(0 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:38 IST 2024
|
||||
SELECT
|
||||
CAST(t."adblock_list" AS VARCHAR) AS "adblock_list",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-25 02:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 03:00:00')
|
||||
GROUP BY 1
|
||||
ORDER BY "count" DESC
|
||||
LIMIT 1000;
|
||||
+----------------------------+-------+
|
||||
| adblock_list | count |
|
||||
+----------------------------+-------+
|
||||
| NoAdblock | 13429 |
|
||||
| EasyList | 1551 |
|
||||
| EasyList,AntiAdblockKiller | 25 |
|
||||
+----------------------------+-------+
|
||||
(3 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:38 IST 2024
|
||||
SELECT
|
||||
(COUNT(*)) AS "__VALUE__"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-25 02:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 03:00:00')
|
||||
GROUP BY ();
|
||||
+-----------+
|
||||
| __VALUE__ |
|
||||
+-----------+
|
||||
| 15005 |
|
||||
+-----------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:38 IST 2024
|
||||
SELECT
|
||||
TIME_FLOOR(CAST(t."__time" AS TIMESTAMP), 'PT1M', NULL, 'Etc/UTC') AS "__time",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-25 02:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 02:17:00')
|
||||
GROUP BY 1;
|
||||
+-------------------------+-------+
|
||||
| __time | count |
|
||||
+-------------------------+-------+
|
||||
| 2019-08-25 02:00:00.000 | 203 |
|
||||
| 2019-08-25 02:01:00.000 | 170 |
|
||||
| 2019-08-25 02:02:00.000 | 116 |
|
||||
| 2019-08-25 02:03:00.000 | 150 |
|
||||
| 2019-08-25 02:04:00.000 | 174 |
|
||||
| 2019-08-25 02:05:00.000 | 187 |
|
||||
| 2019-08-25 02:06:00.000 | 216 |
|
||||
| 2019-08-25 02:07:00.000 | 240 |
|
||||
| 2019-08-25 02:08:00.000 | 256 |
|
||||
| 2019-08-25 02:09:00.000 | 267 |
|
||||
| 2019-08-25 02:10:00.000 | 252 |
|
||||
| 2019-08-25 02:11:00.000 | 228 |
|
||||
| 2019-08-25 02:12:00.000 | 238 |
|
||||
| 2019-08-25 02:13:00.000 | 315 |
|
||||
| 2019-08-25 02:14:00.000 | 282 |
|
||||
| 2019-08-25 02:15:00.000 | 224 |
|
||||
| 2019-08-25 02:16:00.000 | 213 |
|
||||
+-------------------------+-------+
|
||||
(17 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:26:38 IST 2024
|
||||
SELECT
|
||||
TIME_FLOOR(CAST(t."__time" AS TIMESTAMP), 'PT1M', NULL, 'Etc/UTC') AS "__time",
|
||||
CAST(t."adblock_list" AS VARCHAR) AS "adblock_list",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE ((TIMESTAMP '2019-08-25 02:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 02:17:00') AND CAST(t."adblock_list" AS VARCHAR) IN ('NoAdblock','EasyList','EasyList,AntiAdblockKiller'))
|
||||
GROUP BY 1,2;
|
||||
+-------------------------+----------------------------+-------+
|
||||
| __time | adblock_list | count |
|
||||
+-------------------------+----------------------------+-------+
|
||||
| 2019-08-25 02:00:00.000 | EasyList | 15 |
|
||||
| 2019-08-25 02:00:00.000 | NoAdblock | 188 |
|
||||
| 2019-08-25 02:01:00.000 | EasyList | 11 |
|
||||
| 2019-08-25 02:01:00.000 | NoAdblock | 159 |
|
||||
| 2019-08-25 02:02:00.000 | EasyList | 17 |
|
||||
| 2019-08-25 02:02:00.000 | NoAdblock | 99 |
|
||||
| 2019-08-25 02:03:00.000 | EasyList | 17 |
|
||||
| 2019-08-25 02:03:00.000 | NoAdblock | 133 |
|
||||
| 2019-08-25 02:04:00.000 | EasyList | 22 |
|
||||
| 2019-08-25 02:04:00.000 | NoAdblock | 152 |
|
||||
| 2019-08-25 02:05:00.000 | EasyList | 29 |
|
||||
| 2019-08-25 02:05:00.000 | NoAdblock | 158 |
|
||||
| 2019-08-25 02:06:00.000 | EasyList | 15 |
|
||||
| 2019-08-25 02:06:00.000 | NoAdblock | 201 |
|
||||
| 2019-08-25 02:07:00.000 | EasyList | 28 |
|
||||
| 2019-08-25 02:07:00.000 | NoAdblock | 212 |
|
||||
| 2019-08-25 02:08:00.000 | EasyList | 39 |
|
||||
| 2019-08-25 02:08:00.000 | NoAdblock | 217 |
|
||||
| 2019-08-25 02:09:00.000 | EasyList | 47 |
|
||||
| 2019-08-25 02:09:00.000 | NoAdblock | 220 |
|
||||
| 2019-08-25 02:10:00.000 | EasyList | 67 |
|
||||
| 2019-08-25 02:10:00.000 | NoAdblock | 185 |
|
||||
| 2019-08-25 02:11:00.000 | EasyList | 28 |
|
||||
| 2019-08-25 02:11:00.000 | NoAdblock | 200 |
|
||||
| 2019-08-25 02:12:00.000 | EasyList | 39 |
|
||||
| 2019-08-25 02:12:00.000 | EasyList,AntiAdblockKiller | 4 |
|
||||
| 2019-08-25 02:12:00.000 | NoAdblock | 195 |
|
||||
| 2019-08-25 02:13:00.000 | EasyList | 45 |
|
||||
| 2019-08-25 02:13:00.000 | EasyList,AntiAdblockKiller | 4 |
|
||||
| 2019-08-25 02:13:00.000 | NoAdblock | 266 |
|
||||
| 2019-08-25 02:14:00.000 | EasyList | 46 |
|
||||
| 2019-08-25 02:14:00.000 | EasyList,AntiAdblockKiller | 1 |
|
||||
| 2019-08-25 02:14:00.000 | NoAdblock | 235 |
|
||||
| 2019-08-25 02:15:00.000 | EasyList | 25 |
|
||||
| 2019-08-25 02:15:00.000 | NoAdblock | 199 |
|
||||
| 2019-08-25 02:16:00.000 | EasyList | 18 |
|
||||
| 2019-08-25 02:16:00.000 | NoAdblock | 195 |
|
||||
+-------------------------+----------------------------+-------+
|
||||
(37 rows)
|
||||
|
||||
!ok
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,182 @@
|
|||
#The queries in this file were generated; see README.generated
|
||||
#started Wed Jul 10 19:08:31 IST 2024
|
||||
!use druidtest:///?componentSupplier=KttmNestedComponentSupplier
|
||||
!set outputformat mysql
|
||||
# Wed Jul 10 19:11:28 IST 2024
|
||||
SELECT
|
||||
MAX(CAST(t."__time" AS TIMESTAMP)) AS "__VALUE__"
|
||||
FROM "kttm_nested" AS t
|
||||
GROUP BY ();
|
||||
+-------------------------+
|
||||
| __VALUE__ |
|
||||
+-------------------------+
|
||||
| 2019-08-25 23:59:59.686 |
|
||||
+-------------------------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:11:28 IST 2024
|
||||
SELECT
|
||||
MAX(CAST(t."__time" AS TIMESTAMP)) AS "__VALUE__"
|
||||
FROM "kttm_nested" AS t
|
||||
GROUP BY ();
|
||||
+-------------------------+
|
||||
| __VALUE__ |
|
||||
+-------------------------+
|
||||
| 2019-08-25 23:59:59.686 |
|
||||
+-------------------------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:11:35 IST 2024
|
||||
SELECT
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00'))) AS "v0",
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00'))) AS "v1"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00')
|
||||
GROUP BY ();
|
||||
+--------+----+
|
||||
| v0 | v1 |
|
||||
+--------+----+
|
||||
| 465346 | 0 |
|
||||
+--------+----+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:11:38 IST 2024
|
||||
SELECT
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00'))) AS "v0",
|
||||
(SUM(t."session_length") FILTER (WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00'))) AS "v1",
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00'))) AS "v2",
|
||||
(SUM(t."session_length") FILTER (WHERE (TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00'))) AS "v3"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00')
|
||||
GROUP BY ();
|
||||
+--------+--------------+----+----+
|
||||
| v0 | v1 | v2 | v3 |
|
||||
+--------+--------------+----+----+
|
||||
| 465346 | 153573448620 | 0 | |
|
||||
+--------+--------------+----+----+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:11:41 IST 2024
|
||||
SELECT
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00'))) AS "v0",
|
||||
(SUM(t."session_length") FILTER (WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00'))) AS "v1",
|
||||
(SUM(t."timezone_offset") FILTER (WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00'))) AS "v2",
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00'))) AS "v3",
|
||||
(SUM(t."session_length") FILTER (WHERE (TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00'))) AS "v4",
|
||||
(SUM(t."timezone_offset") FILTER (WHERE (TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00'))) AS "v5"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00')
|
||||
GROUP BY ();
|
||||
+--------+--------------+----------+----+----+----+
|
||||
| v0 | v1 | v2 | v3 | v4 | v5 |
|
||||
+--------+--------------+----------+----+----+----+
|
||||
| 465346 | 153573448620 | 69683010 | 0 | | |
|
||||
+--------+--------------+----------+----+----+----+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:11:43 IST 2024
|
||||
SELECT
|
||||
(COUNT(*)) AS "count",
|
||||
(SUM(t."session_length")) AS "sum_session_length",
|
||||
(SUM(t."timezone_offset")) AS "sum_timezone_offset"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00')
|
||||
GROUP BY ();
|
||||
+--------+--------------------+---------------------+
|
||||
| count | sum_session_length | sum_timezone_offset |
|
||||
+--------+--------------------+---------------------+
|
||||
| 465346 | 153573448620 | 69683010 |
|
||||
+--------+--------------------+---------------------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:11:45 IST 2024
|
||||
SELECT
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00'))) AS "v0",
|
||||
(SUM(t."session_length") FILTER (WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00'))) AS "v1",
|
||||
(SUM(t."timezone_offset") FILTER (WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00'))) AS "v2",
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-24 23:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 23:00:00'))) AS "v3",
|
||||
(SUM(t."session_length") FILTER (WHERE (TIMESTAMP '2019-08-24 23:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 23:00:00'))) AS "v4",
|
||||
(SUM(t."timezone_offset") FILTER (WHERE (TIMESTAMP '2019-08-24 23:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 23:00:00'))) AS "v5"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-24 23:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00')
|
||||
GROUP BY ();
|
||||
+--------+--------------+----------+--------+--------------+----------+
|
||||
| v0 | v1 | v2 | v3 | v4 | v5 |
|
||||
+--------+--------------+----------+--------+--------------+----------+
|
||||
| 465346 | 153573448620 | 69683010 | 444865 | 140267784970 | 66401070 |
|
||||
+--------+--------------+----------+--------+--------------+----------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:12:25 IST 2024
|
||||
SELECT
|
||||
TIME_FLOOR(CAST(t."__time" AS TIMESTAMP), 'PT6H', NULL, 'Etc/UTC') AS "__time",
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00'))) AS "count",
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-24 23:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 23:00:00'))) AS "_cmp_count",
|
||||
21600000 AS "MillisecondsInInterval"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-24 23:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00')
|
||||
GROUP BY 1
|
||||
ORDER BY "__time" DESC
|
||||
LIMIT 101;
|
||||
+-------------------------+--------+------------+------------------------+
|
||||
| __time | count | _cmp_count | MillisecondsInInterval |
|
||||
+-------------------------+--------+------------+------------------------+
|
||||
| 2019-08-25 18:00:00.000 | 210308 | 189827 | 21600000 |
|
||||
| 2019-08-25 12:00:00.000 | 146266 | 146266 | 21600000 |
|
||||
| 2019-08-25 06:00:00.000 | 36722 | 36722 | 21600000 |
|
||||
| 2019-08-25 00:00:00.000 | 72050 | 72050 | 21600000 |
|
||||
+-------------------------+--------+------------+------------------------+
|
||||
(4 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:12:27 IST 2024
|
||||
SELECT
|
||||
TIME_FLOOR(CAST(t."__time" AS TIMESTAMP), 'PT1H', NULL, 'Etc/UTC') AS "__time",
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-25 18:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00'))) AS "count",
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-25 17:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 23:00:00'))) AS "_cmp_count",
|
||||
3600000 AS "MillisecondsInInterval"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-25 17:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00')
|
||||
GROUP BY 1
|
||||
ORDER BY "__time" DESC
|
||||
LIMIT 101;
|
||||
+-------------------------+-------+------------+------------------------+
|
||||
| __time | count | _cmp_count | MillisecondsInInterval |
|
||||
+-------------------------+-------+------------+------------------------+
|
||||
| 2019-08-25 23:00:00.000 | 20481 | 0 | 3600000 |
|
||||
| 2019-08-25 22:00:00.000 | 23681 | 23681 | 3600000 |
|
||||
| 2019-08-25 21:00:00.000 | 29818 | 29818 | 3600000 |
|
||||
| 2019-08-25 20:00:00.000 | 43502 | 43502 | 3600000 |
|
||||
| 2019-08-25 19:00:00.000 | 45152 | 45152 | 3600000 |
|
||||
| 2019-08-25 18:00:00.000 | 47674 | 47674 | 3600000 |
|
||||
| 2019-08-25 17:00:00.000 | 0 | 57697 | 3600000 |
|
||||
+-------------------------+-------+------------+------------------------+
|
||||
(7 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 19:12:27 IST 2024
|
||||
SELECT
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-25 18:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00'))) AS "v0",
|
||||
(SUM(t."session_length") FILTER (WHERE (TIMESTAMP '2019-08-25 18:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00'))) AS "v1",
|
||||
(SUM(t."timezone_offset") FILTER (WHERE (TIMESTAMP '2019-08-25 18:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00'))) AS "v2",
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-25 17:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 23:00:00'))) AS "v3",
|
||||
(SUM(t."session_length") FILTER (WHERE (TIMESTAMP '2019-08-25 17:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 23:00:00'))) AS "v4",
|
||||
(SUM(t."timezone_offset") FILTER (WHERE (TIMESTAMP '2019-08-25 17:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 23:00:00'))) AS "v5"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-25 17:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00')
|
||||
GROUP BY ();
|
||||
+--------+-------------+----------+--------+-------------+----------+
|
||||
| v0 | v1 | v2 | v3 | v4 | v5 |
|
||||
+--------+-------------+----------+--------+-------------+----------+
|
||||
| 210308 | 56477807055 | 39365775 | 247524 | 51198734605 | 48270540 |
|
||||
+--------+-------------+----------+--------+-------------+----------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,769 @@
|
|||
#The queries in this file were generated; see README.generated
|
||||
#started Wed Jul 10 16:25:46 IST 2024
|
||||
!use druidtest:///?componentSupplier=KttmNestedComponentSupplier
|
||||
!set outputformat mysql
|
||||
# Wed Jul 10 17:01:55 IST 2024
|
||||
SELECT
|
||||
MAX(CAST(t."__time" AS TIMESTAMP)) AS "__VALUE__"
|
||||
FROM "kttm_nested" AS t
|
||||
GROUP BY ();
|
||||
+-------------------------+
|
||||
| __VALUE__ |
|
||||
+-------------------------+
|
||||
| 2019-08-25 23:59:59.686 |
|
||||
+-------------------------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:01:55 IST 2024
|
||||
SELECT
|
||||
MAX(CAST(t."__time" AS TIMESTAMP)) AS "__VALUE__"
|
||||
FROM "kttm_nested" AS t
|
||||
GROUP BY ();
|
||||
+-------------------------+
|
||||
| __VALUE__ |
|
||||
+-------------------------+
|
||||
| 2019-08-25 23:59:59.686 |
|
||||
+-------------------------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:01:55 IST 2024
|
||||
SELECT
|
||||
(COUNT(*)) AS "__VALUE__"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2024-07-09 11:32:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2024-07-10 11:32:00')
|
||||
GROUP BY ();
|
||||
+-----------+
|
||||
| __VALUE__ |
|
||||
+-----------+
|
||||
| 0 |
|
||||
+-----------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:01:55 IST 2024
|
||||
SELECT
|
||||
(COUNT(*)) AS "__VALUE__"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00')
|
||||
GROUP BY ();
|
||||
+-----------+
|
||||
| __VALUE__ |
|
||||
+-----------+
|
||||
| 465346 |
|
||||
+-----------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:01:58 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00')
|
||||
GROUP BY 1
|
||||
ORDER BY "count" DESC
|
||||
LIMIT 1000;
|
||||
+-----------------------+--------+
|
||||
| Browser | count |
|
||||
+-----------------------+--------+
|
||||
| Chrome | 232603 |
|
||||
| Mobile Safari | 113617 |
|
||||
| Chrome Mobile | 60173 |
|
||||
| Safari | 38323 |
|
||||
| Firefox | 8307 |
|
||||
| Yandex.Browser | 4258 |
|
||||
| Opera | 2819 |
|
||||
| IE | 1238 |
|
||||
| Mozilla | 1224 |
|
||||
| Silk | 1050 |
|
||||
| Yandex.Browser mobile | 583 |
|
||||
| Mobile Firefox | 253 |
|
||||
| Puffin | 240 |
|
||||
| Chromium | 149 |
|
||||
| Waterfox | 129 |
|
||||
| Opera Mobile | 78 |
|
||||
| PS4 Web browser | 77 |
|
||||
| Android browser | 52 |
|
||||
| Sogou Explorer | 51 |
|
||||
| IE Mobile | 35 |
|
||||
| Maxthon | 34 |
|
||||
| PS Vita browser | 19 |
|
||||
| unknown | 17 |
|
||||
| | 10 |
|
||||
| Apple Mail | 7 |
|
||||
+-----------------------+--------+
|
||||
(25 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:01:59 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) AS "Browser_Version",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00')
|
||||
GROUP BY 1
|
||||
ORDER BY "count" DESC
|
||||
LIMIT 6;
|
||||
+-----------------+--------+
|
||||
| Browser_Version | count |
|
||||
+-----------------+--------+
|
||||
| 76.0.3809.100 | 133145 |
|
||||
| 12.1.2 | 86940 |
|
||||
| 76.0.3809.111 | 43738 |
|
||||
| 12.1.1 | 26409 |
|
||||
| 76.0.3809.102 | 20389 |
|
||||
| 75.0.3770.144 | 20121 |
|
||||
+-----------------+--------+
|
||||
(6 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:01:59 IST 2024
|
||||
SELECT
|
||||
(COUNT(*)) AS "__VALUE__"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome'))
|
||||
GROUP BY ();
|
||||
+-----------+
|
||||
| __VALUE__ |
|
||||
+-----------+
|
||||
| 232603 |
|
||||
+-----------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:01:59 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Mobile Safari','Chrome Mobile','Safari','Firefox','Yandex.Browser','Opera','IE','Mozilla','Silk','Yandex.Browser mobile','Mobile Firefox','Puffin','Chromium','Waterfox'))
|
||||
GROUP BY 1;
|
||||
+-----------------------+--------+
|
||||
| Browser | count |
|
||||
+-----------------------+--------+
|
||||
| Chrome Mobile | 60173 |
|
||||
| Chromium | 149 |
|
||||
| Firefox | 8307 |
|
||||
| IE | 1238 |
|
||||
| Mobile Firefox | 253 |
|
||||
| Mobile Safari | 113617 |
|
||||
| Mozilla | 1224 |
|
||||
| Opera | 2819 |
|
||||
| Puffin | 240 |
|
||||
| Safari | 38323 |
|
||||
| Silk | 1050 |
|
||||
| Waterfox | 129 |
|
||||
| Yandex.Browser | 4258 |
|
||||
| Yandex.Browser mobile | 583 |
|
||||
+-----------------------+--------+
|
||||
(14 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:01:59 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) AS "Browser_Version",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile','Safari','Firefox','Yandex.Browser','Opera','IE','Mozilla','Silk','Yandex.Browser mobile','Mobile Firefox','Puffin','Chromium','Waterfox')) AND CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) IN ('76.0.3809.100','12.1.2','76.0.3809.111','12.1.1','76.0.3809.102'))
|
||||
GROUP BY 1,2;
|
||||
+---------------+-----------------+--------+
|
||||
| Browser | Browser_Version | count |
|
||||
+---------------+-----------------+--------+
|
||||
| Chrome | 76.0.3809.100 | 133113 |
|
||||
| Chrome | 76.0.3809.102 | 20389 |
|
||||
| Chrome | 76.0.3809.111 | 1745 |
|
||||
| Chrome Mobile | 76.0.3809.111 | 41993 |
|
||||
| Chromium | 76.0.3809.100 | 32 |
|
||||
| Mobile Safari | 12.1.1 | 18434 |
|
||||
| Mobile Safari | 12.1.2 | 72287 |
|
||||
| Safari | 12.1.1 | 7975 |
|
||||
| Safari | 12.1.2 | 14653 |
|
||||
+---------------+-----------------+--------+
|
||||
(9 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:01:59 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile','Safari','Firefox','Yandex.Browser','Opera','IE','Mozilla','Silk','Yandex.Browser mobile','Mobile Firefox','Puffin','Chromium','Waterfox')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) IN ('76.0.3809.100','12.1.2','76.0.3809.111','12.1.1','76.0.3809.102')) IS NOT TRUE)
|
||||
GROUP BY 1;
|
||||
+-----------------------+-------+
|
||||
| Browser | count |
|
||||
+-----------------------+-------+
|
||||
| Chrome | 77356 |
|
||||
| Chrome Mobile | 18180 |
|
||||
| Chromium | 117 |
|
||||
| Firefox | 8307 |
|
||||
| IE | 1238 |
|
||||
| Mobile Firefox | 253 |
|
||||
| Mobile Safari | 22896 |
|
||||
| Mozilla | 1224 |
|
||||
| Opera | 2819 |
|
||||
| Puffin | 240 |
|
||||
| Safari | 15695 |
|
||||
| Silk | 1050 |
|
||||
| Waterfox | 129 |
|
||||
| Yandex.Browser | 4258 |
|
||||
| Yandex.Browser mobile | 583 |
|
||||
+-----------------------+-------+
|
||||
(15 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:04 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) AS "Browser_Version",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile','Safari','Firefox','Yandex.Browser','Opera','IE','Mozilla','Silk','Yandex.Browser mobile','Mobile Firefox','Puffin','Chromium','Waterfox')) AND CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) IN ('76.0.3809.100','12.1.2','76.0.3809.111','12.1.1','76.0.3809.102'))
|
||||
GROUP BY 1,2;
|
||||
+---------+-----------------+-------+
|
||||
| Browser | Browser_Version | count |
|
||||
+---------+-----------------+-------+
|
||||
+---------+-----------------+-------+
|
||||
(0 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:04 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile','Safari','Firefox','Yandex.Browser','Opera','IE','Mozilla','Silk','Yandex.Browser mobile','Mobile Firefox','Puffin','Chromium','Waterfox'))
|
||||
GROUP BY 1;
|
||||
+---------+-------+
|
||||
| Browser | count |
|
||||
+---------+-------+
|
||||
+---------+-------+
|
||||
(0 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:04 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile','Safari','Firefox','Yandex.Browser','Opera','IE','Mozilla','Silk','Yandex.Browser mobile','Mobile Firefox','Puffin','Chromium','Waterfox')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) IN ('76.0.3809.100','12.1.2','76.0.3809.111','12.1.1','76.0.3809.102')) IS NOT TRUE)
|
||||
GROUP BY 1;
|
||||
+---------+-------+
|
||||
| Browser | count |
|
||||
+---------+-------+
|
||||
+---------+-------+
|
||||
(0 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:07 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
(COUNT(*)) AS "r"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00')
|
||||
GROUP BY 1
|
||||
ORDER BY "r" DESC
|
||||
LIMIT 101;
|
||||
+-----------------------+--------+
|
||||
| Browser | r |
|
||||
+-----------------------+--------+
|
||||
| Chrome | 232603 |
|
||||
| Mobile Safari | 113617 |
|
||||
| Chrome Mobile | 60173 |
|
||||
| Safari | 38323 |
|
||||
| Firefox | 8307 |
|
||||
| Yandex.Browser | 4258 |
|
||||
| Opera | 2819 |
|
||||
| IE | 1238 |
|
||||
| Mozilla | 1224 |
|
||||
| Silk | 1050 |
|
||||
| Yandex.Browser mobile | 583 |
|
||||
| Mobile Firefox | 253 |
|
||||
| Puffin | 240 |
|
||||
| Chromium | 149 |
|
||||
| Waterfox | 129 |
|
||||
| Opera Mobile | 78 |
|
||||
| PS4 Web browser | 77 |
|
||||
| Android browser | 52 |
|
||||
| Sogou Explorer | 51 |
|
||||
| IE Mobile | 35 |
|
||||
| Maxthon | 34 |
|
||||
| PS Vita browser | 19 |
|
||||
| unknown | 17 |
|
||||
| | 10 |
|
||||
| Apple Mail | 7 |
|
||||
+-----------------------+--------+
|
||||
(25 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:10 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile'))
|
||||
GROUP BY 1
|
||||
ORDER BY "count" DESC
|
||||
LIMIT 1000;
|
||||
+---------------+--------+
|
||||
| Browser | count |
|
||||
+---------------+--------+
|
||||
| Chrome | 232603 |
|
||||
| Mobile Safari | 113617 |
|
||||
| Chrome Mobile | 60173 |
|
||||
+---------------+--------+
|
||||
(3 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:10 IST 2024
|
||||
SELECT
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00'))) AS "v0",
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00'))) AS "v1"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile'))
|
||||
GROUP BY ();
|
||||
+--------+----+
|
||||
| v0 | v1 |
|
||||
+--------+----+
|
||||
| 406393 | 0 |
|
||||
+--------+----+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:10 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) AS "Browser_Version",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile'))
|
||||
GROUP BY 1
|
||||
ORDER BY "count" DESC
|
||||
LIMIT 6;
|
||||
+-----------------+--------+
|
||||
| Browser_Version | count |
|
||||
+-----------------+--------+
|
||||
| 76.0.3809.100 | 133113 |
|
||||
| 12.1.2 | 72287 |
|
||||
| 76.0.3809.111 | 43738 |
|
||||
| 76.0.3809.102 | 20389 |
|
||||
| 75.0.3770.144 | 20121 |
|
||||
| 12.1.1 | 18434 |
|
||||
+-----------------+--------+
|
||||
(6 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:10 IST 2024
|
||||
SELECT
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00'))) AS "v0",
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00'))) AS "v1"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome'))
|
||||
GROUP BY ();
|
||||
+--------+----+
|
||||
| v0 | v1 |
|
||||
+--------+----+
|
||||
| 232603 | 0 |
|
||||
+--------+----+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:10 IST 2024
|
||||
SELECT
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')))) AS "v0",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')))) AS "v1",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome Mobile')))) AS "v2",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome Mobile')))) AS "v3"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Mobile Safari','Chrome Mobile'))
|
||||
GROUP BY ();
|
||||
+--------+----+-------+----+
|
||||
| v0 | v1 | v2 | v3 |
|
||||
+--------+----+-------+----+
|
||||
| 113617 | 0 | 60173 | 0 |
|
||||
+--------+----+-------+----+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:11 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) AS "Browser_Version",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile')) AND CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) IN ('76.0.3809.100','12.1.2','76.0.3809.111','76.0.3809.102','75.0.3770.144'))
|
||||
GROUP BY 1,2;
|
||||
+---------------+-----------------+--------+
|
||||
| Browser | Browser_Version | count |
|
||||
+---------------+-----------------+--------+
|
||||
| Chrome | 75.0.3770.144 | 20121 |
|
||||
| Chrome | 76.0.3809.100 | 133113 |
|
||||
| Chrome | 76.0.3809.102 | 20389 |
|
||||
| Chrome | 76.0.3809.111 | 1745 |
|
||||
| Chrome Mobile | 76.0.3809.111 | 41993 |
|
||||
| Mobile Safari | 12.1.2 | 72287 |
|
||||
+---------------+-----------------+--------+
|
||||
(6 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:11 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) AS "Browser_Version",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile')) AND CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) IN ('76.0.3809.100','12.1.2','76.0.3809.111','76.0.3809.102','75.0.3770.144'))
|
||||
GROUP BY 1,2;
|
||||
+---------+-----------------+-------+
|
||||
| Browser | Browser_Version | count |
|
||||
+---------+-----------------+-------+
|
||||
+---------+-----------------+-------+
|
||||
(0 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:11 IST 2024
|
||||
SELECT
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')))) AS "v0",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')))) AS "v1",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')))) AS "v2",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')))) AS "v3",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome Mobile')))) AS "v4",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome Mobile')))) AS "v5"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) IN ('76.0.3809.100','12.1.2','76.0.3809.111','76.0.3809.102','75.0.3770.144')) IS NOT TRUE)
|
||||
GROUP BY ();
|
||||
+-------+----+-------+----+-------+----+
|
||||
| v0 | v1 | v2 | v3 | v4 | v5 |
|
||||
+-------+----+-------+----+-------+----+
|
||||
| 57235 | 0 | 41330 | 0 | 18180 | 0 |
|
||||
+-------+----+-------+----+-------+----+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:21 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) AS "Browser_Version",
|
||||
(COUNT(*)) AS "r"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile'))
|
||||
GROUP BY 1
|
||||
ORDER BY "r" DESC
|
||||
LIMIT 101;
|
||||
+-----------------+--------+
|
||||
| Browser_Version | r |
|
||||
+-----------------+--------+
|
||||
| 76.0.3809.100 | 133113 |
|
||||
| 12.1.2 | 72287 |
|
||||
| 76.0.3809.111 | 43738 |
|
||||
| 76.0.3809.102 | 20389 |
|
||||
| 75.0.3770.144 | 20121 |
|
||||
| 12.1.1 | 18434 |
|
||||
| 64.0.3282.140 | 18359 |
|
||||
| | 9110 |
|
||||
| 75.0.3770.142 | 5795 |
|
||||
| 67.0.3396.87 | 5371 |
|
||||
| 12.0 | 4995 |
|
||||
| 70.0.3538.102 | 4374 |
|
||||
| 74.0.3729.159 | 4053 |
|
||||
| 12.1 | 3144 |
|
||||
| 75.0.3770.100 | 2847 |
|
||||
| 11.0 | 2252 |
|
||||
| 76.0.3809.89 | 1907 |
|
||||
| 13.0 | 1867 |
|
||||
| 76.0.3809.123 | 1765 |
|
||||
| 75.0.3770.143 | 1642 |
|
||||
| 63.0.3239.132 | 1487 |
|
||||
| 75.0.3770.101 | 1478 |
|
||||
| 75.0.3770.129 | 1324 |
|
||||
| 49.0.2623.112 | 1268 |
|
||||
| 10.0 | 1089 |
|
||||
| 74.0.3729.169 | 1027 |
|
||||
| 74.0.3729.125 | 919 |
|
||||
| 73.0.3683.86 | 867 |
|
||||
| 75.0.3770.102 | 792 |
|
||||
| 72.0.3626.121 | 714 |
|
||||
| 72.0.3626.122 | 666 |
|
||||
| 70.0.3538.110 | 645 |
|
||||
| 74.0.3729.136 | 631 |
|
||||
| 76.0.3809.87 | 615 |
|
||||
| 73.0.3683.90 | 586 |
|
||||
| 69.0.3497.100 | 555 |
|
||||
| 74.0.3729.157 | 529 |
|
||||
| 69.0.3497.128 | 502 |
|
||||
| 73.0.3683.103 | 488 |
|
||||
| 74.0.3729.131 | 486 |
|
||||
| 52.0.2743.116 | 483 |
|
||||
| 58.0.3029.110 | 471 |
|
||||
| 75.0.3770.80 | 451 |
|
||||
| 73.0.3683.114 | 419 |
|
||||
| 71.0.3578.99 | 398 |
|
||||
| 71.0.3578.141 | 389 |
|
||||
| 73.0.3683.88 | 387 |
|
||||
| 71.0.3578.127 | 379 |
|
||||
| 9.0 | 376 |
|
||||
| 67.0.3396.99 | 336 |
|
||||
| 56.0.2924.87 | 323 |
|
||||
| 51.0.2704.79 | 308 |
|
||||
| 72.0.3626.109 | 299 |
|
||||
| 76.0.3809.81 | 285 |
|
||||
| 77.0.3865.35 | 280 |
|
||||
| 71.0.3578.98 | 275 |
|
||||
| 58.0.2988.0 | 250 |
|
||||
| 68.0.3440.91 | 231 |
|
||||
| 72.0.3626.117 | 228 |
|
||||
| 66.0.3359.126 | 216 |
|
||||
| 78.0.3877.0 | 210 |
|
||||
| 65.0.3325.109 | 207 |
|
||||
| 75.0.3770.90 | 206 |
|
||||
| 59.0.3043.0 | 200 |
|
||||
| 64.0.3282.137 | 199 |
|
||||
| 42.0.2311.135 | 194 |
|
||||
| 46.0.2486.0 | 186 |
|
||||
| 57.0.2987.133 | 178 |
|
||||
| 72.0.3626.81 | 174 |
|
||||
| 73.0.3683.75 | 171 |
|
||||
| 70.0.3538.76 | 163 |
|
||||
| 65.0.3325.181 | 142 |
|
||||
| 70.0.3538.77 | 140 |
|
||||
| 72.0.3626.105 | 136 |
|
||||
| 58.0.3012.0 | 135 |
|
||||
| 74.0.3729.180 | 134 |
|
||||
| 70.0.3538.80 | 133 |
|
||||
| 77.0.3865.42 | 132 |
|
||||
| 63.0.3239.111 | 127 |
|
||||
| 59.0.3071.125 | 126 |
|
||||
| 78.0.3879.0 | 119 |
|
||||
| 74.0.3729.108 | 117 |
|
||||
| 61.0.3163.100 | 114 |
|
||||
| 55.0.2883.91 | 113 |
|
||||
| 75.0.3770.67 | 112 |
|
||||
| 75.0.3770.89 | 111 |
|
||||
| 57.0.2987.110 | 106 |
|
||||
| 66.0.3359.181 | 105 |
|
||||
| 72.0.3626.96 | 101 |
|
||||
| 58.0.3029.140 | 98 |
|
||||
| 57.0.2987.108 | 95 |
|
||||
| 53.0.2785.34 | 89 |
|
||||
| 51.0.2683.0 | 88 |
|
||||
| 63.0.3235.0 | 85 |
|
||||
| 43.0.2357.93 | 84 |
|
||||
| 72.0.3626.119 | 81 |
|
||||
| 69.0.3497.120 | 80 |
|
||||
| 45.0.2454.85 | 77 |
|
||||
| 70.0.3538.25 | 73 |
|
||||
| 78.0.3892.0 | 73 |
|
||||
| 74.0.3729.112 | 68 |
|
||||
+-----------------+--------+
|
||||
(101 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:23 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile')) AND CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) IN ('76.0.3809.100','12.1.2'))
|
||||
GROUP BY 1
|
||||
ORDER BY "count" DESC
|
||||
LIMIT 1000;
|
||||
+---------------+--------+
|
||||
| Browser | count |
|
||||
+---------------+--------+
|
||||
| Chrome | 133113 |
|
||||
| Mobile Safari | 72287 |
|
||||
+---------------+--------+
|
||||
(2 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:23 IST 2024
|
||||
SELECT
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00'))) AS "v0",
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00'))) AS "v1"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile')) AND CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) IN ('76.0.3809.100','12.1.2'))
|
||||
GROUP BY ();
|
||||
+--------+----+
|
||||
| v0 | v1 |
|
||||
+--------+----+
|
||||
| 205400 | 0 |
|
||||
+--------+----+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:23 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) AS "Browser_Version",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile')) AND CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) IN ('76.0.3809.100','12.1.2'))
|
||||
GROUP BY 1
|
||||
ORDER BY "count" DESC
|
||||
LIMIT 6;
|
||||
+-----------------+--------+
|
||||
| Browser_Version | count |
|
||||
+-----------------+--------+
|
||||
| 76.0.3809.100 | 133113 |
|
||||
| 12.1.2 | 72287 |
|
||||
+-----------------+--------+
|
||||
(2 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:23 IST 2024
|
||||
SELECT
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00'))) AS "v0",
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00'))) AS "v1",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v2",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v3",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v4",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v5"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')) AND CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) IN ('76.0.3809.100','12.1.2'))
|
||||
GROUP BY ();
|
||||
+--------+----+--------+----+----+----+
|
||||
| v0 | v1 | v2 | v3 | v4 | v5 |
|
||||
+--------+----+--------+----+----+----+
|
||||
| 133113 | 0 | 133113 | 0 | 0 | 0 |
|
||||
+--------+----+--------+----+----+----+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:24 IST 2024
|
||||
SELECT
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00'))) AS "v0",
|
||||
(COUNT(*) FILTER (WHERE (TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00'))) AS "v1",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v2",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v3",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v4",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v5"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')) AND CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) IN ('76.0.3809.100','12.1.2'))
|
||||
GROUP BY ();
|
||||
+-------+----+----+----+-------+----+
|
||||
| v0 | v1 | v2 | v3 | v4 | v5 |
|
||||
+-------+----+----+----+-------+----+
|
||||
| 72287 | 0 | 0 | 0 | 72287 | 0 |
|
||||
+-------+----+----+----+-------+----+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:30 IST 2024
|
||||
SELECT
|
||||
(SUM(t."session_length") FILTER (WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')))) AS "v0",
|
||||
(SUM(t."session_length") FILTER (WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')))) AS "v1",
|
||||
(SUM(t."session_length") FILTER (WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')))) AS "v2",
|
||||
(SUM(t."session_length") FILTER (WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')))) AS "v3",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v4",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v5",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v6",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v7",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v8",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v9",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v10",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v11"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari')) AND CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) IN ('76.0.3809.100','12.1.2'))
|
||||
GROUP BY ();
|
||||
+-------------+----+-------------+----+-------------+----+----+----+----+----+-------------+-----+
|
||||
| v0 | v1 | v2 | v3 | v4 | v5 | v6 | v7 | v8 | v9 | v10 | v11 |
|
||||
+-------------+----+-------------+----+-------------+----+----+----+----+----+-------------+-----+
|
||||
| 49117680583 | | 10361056506 | | 49117680583 | | | | | | 10361056506 | |
|
||||
+-------------+----+-------------+----+-------------+----+----+----+----+----+-------------+-----+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:34 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.os') AS VARCHAR) AS "Os",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile')) AND CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) IN ('76.0.3809.100','12.1.2'))
|
||||
GROUP BY 1
|
||||
ORDER BY "count" DESC
|
||||
LIMIT 5;
|
||||
+-------------+-------+
|
||||
| Os | count |
|
||||
+-------------+-------+
|
||||
| Windows | 88616 |
|
||||
| iOS | 72287 |
|
||||
| Windows 7 | 18877 |
|
||||
| OS X | 17009 |
|
||||
| Windows 8.1 | 6558 |
|
||||
+-------------+-------+
|
||||
(5 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:34 IST 2024
|
||||
SELECT
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')))) AS "v0",
|
||||
(SUM(t."session_length") FILTER (WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')))) AS "v1",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')))) AS "v2",
|
||||
(SUM(t."session_length") FILTER (WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')))) AS "v3",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')))) AS "v4",
|
||||
(SUM(t."session_length") FILTER (WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')))) AS "v5",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')))) AS "v6",
|
||||
(SUM(t."session_length") FILTER (WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')))) AS "v7",
|
||||
(COUNT(*) FILTER (WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v8",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v9",
|
||||
(COUNT(*) FILTER (WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v10",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v11",
|
||||
(COUNT(*) FILTER (WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v12",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v13",
|
||||
(COUNT(*) FILTER (WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v14",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v15",
|
||||
(COUNT(*) FILTER (WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v16",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v17",
|
||||
(COUNT(*) FILTER (WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v18",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v19",
|
||||
(COUNT(*) FILTER (WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v20",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v21",
|
||||
(COUNT(*) FILTER (WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v22",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v23"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE ((((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari')) AND CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) IN ('76.0.3809.100','12.1.2')) AND (CAST(JSON_VALUE("t"."agent",'$.os') AS VARCHAR)='Windows'))
|
||||
GROUP BY ();
|
||||
+-------+-------------+----+----+----+----+----+----+-------+-------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
|
||||
| v0 | v1 | v2 | v3 | v4 | v5 | v6 | v7 | v8 | v9 | v10 | v11 | v12 | v13 | v14 | v15 | v16 | v17 | v18 | v19 | v20 | v21 | v22 | v23 |
|
||||
+-------+-------------+----+----+----+----+----+----+-------+-------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
|
||||
| 88616 | 40565948570 | 0 | | 0 | | 0 | | 88616 | 40565948570 | 0 | | 0 | | 0 | | 0 | | 0 | | 0 | | 0 | |
|
||||
+-------+-------------+----+----+----+----+----+----+-------+-------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 17:02:34 IST 2024
|
||||
SELECT
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')))) AS "v0",
|
||||
(SUM(t."session_length") FILTER (WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')))) AS "v1",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')))) AS "v2",
|
||||
(SUM(t."session_length") FILTER (WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')))) AS "v3",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')))) AS "v4",
|
||||
(SUM(t."session_length") FILTER (WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')))) AS "v5",
|
||||
(COUNT(*) FILTER (WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')))) AS "v6",
|
||||
(SUM(t."session_length") FILTER (WHERE ((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')))) AS "v7",
|
||||
(COUNT(*) FILTER (WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v8",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v9",
|
||||
(COUNT(*) FILTER (WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v10",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v11",
|
||||
(COUNT(*) FILTER (WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v12",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v13",
|
||||
(COUNT(*) FILTER (WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v14",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='76.0.3809.100')))) AS "v15",
|
||||
(COUNT(*) FILTER (WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v16",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v17",
|
||||
(COUNT(*) FILTER (WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v18",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v19",
|
||||
(COUNT(*) FILTER (WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v20",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v21",
|
||||
(COUNT(*) FILTER (WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v22",
|
||||
(SUM(t."session_length") FILTER (WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Mobile Safari')) AND (CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR)='12.1.2')))) AS "v23"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE ((((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari')) AND CAST(JSON_VALUE("t"."agent",'$.browser_version') AS VARCHAR) IN ('76.0.3809.100','12.1.2')) AND (CAST(JSON_VALUE("t"."agent",'$.os') AS VARCHAR)='iOS'))
|
||||
GROUP BY ();
|
||||
+----+----+----+----+-------+-------------+----+----+----+----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-------+-------------+-----+-----+
|
||||
| v0 | v1 | v2 | v3 | v4 | v5 | v6 | v7 | v8 | v9 | v10 | v11 | v12 | v13 | v14 | v15 | v16 | v17 | v18 | v19 | v20 | v21 | v22 | v23 |
|
||||
+----+----+----+----+-------+-------------+----+----+----+----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-------+-------------+-----+-----+
|
||||
| 0 | | 0 | | 72287 | 10361056506 | 0 | | 0 | | 0 | | 0 | | 0 | | 0 | | 0 | | 72287 | 10361056506 | 0 | |
|
||||
+----+----+----+----+-------+-------------+----+----+----+----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-------+-------------+-----+-----+
|
||||
(1 row)
|
||||
|
||||
!ok
|
|
@ -0,0 +1,389 @@
|
|||
#The queries in this file were generated; see README.generated
|
||||
#started Wed Jul 10 16:23:38 IST 2024
|
||||
!use druidtest:///?componentSupplier=KttmNestedComponentSupplier
|
||||
!set outputformat mysql
|
||||
# Wed Jul 10 16:24:06 IST 2024
|
||||
SELECT
|
||||
MAX(CAST(t."__time" AS TIMESTAMP)) AS "__VALUE__"
|
||||
FROM "kttm_nested" AS t
|
||||
GROUP BY ();
|
||||
+-------------------------+
|
||||
| __VALUE__ |
|
||||
+-------------------------+
|
||||
| 2019-08-25 23:59:59.686 |
|
||||
+-------------------------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 16:24:06 IST 2024
|
||||
SELECT
|
||||
MAX(CAST(t."__time" AS TIMESTAMP)) AS "__VALUE__"
|
||||
FROM "kttm_nested" AS t
|
||||
GROUP BY ();
|
||||
+-------------------------+
|
||||
| __VALUE__ |
|
||||
+-------------------------+
|
||||
| 2019-08-25 23:59:59.686 |
|
||||
+-------------------------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 16:24:06 IST 2024
|
||||
SELECT
|
||||
(COUNT(*)) AS "__VALUE__"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2024-07-09 10:55:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2024-07-10 10:55:00')
|
||||
GROUP BY ();
|
||||
+-----------+
|
||||
| __VALUE__ |
|
||||
+-----------+
|
||||
| 0 |
|
||||
+-----------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 16:24:06 IST 2024
|
||||
SELECT
|
||||
(COUNT(*)) AS "__VALUE__"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00')
|
||||
GROUP BY ();
|
||||
+-----------+
|
||||
| __VALUE__ |
|
||||
+-----------+
|
||||
| 465346 |
|
||||
+-----------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 16:24:21 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00')
|
||||
GROUP BY 1
|
||||
ORDER BY "count" DESC
|
||||
LIMIT 1000;
|
||||
+-----------------------+--------+
|
||||
| Browser | count |
|
||||
+-----------------------+--------+
|
||||
| Chrome | 232603 |
|
||||
| Mobile Safari | 113617 |
|
||||
| Chrome Mobile | 60173 |
|
||||
| Safari | 38323 |
|
||||
| Firefox | 8307 |
|
||||
| Yandex.Browser | 4258 |
|
||||
| Opera | 2819 |
|
||||
| IE | 1238 |
|
||||
| Mozilla | 1224 |
|
||||
| Silk | 1050 |
|
||||
| Yandex.Browser mobile | 583 |
|
||||
| Mobile Firefox | 253 |
|
||||
| Puffin | 240 |
|
||||
| Chromium | 149 |
|
||||
| Waterfox | 129 |
|
||||
| Opera Mobile | 78 |
|
||||
| PS4 Web browser | 77 |
|
||||
| Android browser | 52 |
|
||||
| Sogou Explorer | 51 |
|
||||
| IE Mobile | 35 |
|
||||
| Maxthon | 34 |
|
||||
| PS Vita browser | 19 |
|
||||
| unknown | 17 |
|
||||
| | 10 |
|
||||
| Apple Mail | 7 |
|
||||
+-----------------------+--------+
|
||||
(25 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 16:24:21 IST 2024
|
||||
SELECT
|
||||
(COUNT(*)) AS "__VALUE__"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND (CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR)='Chrome'))
|
||||
GROUP BY ();
|
||||
+-----------+
|
||||
| __VALUE__ |
|
||||
+-----------+
|
||||
| 232603 |
|
||||
+-----------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 16:24:21 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE ((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Mobile Safari','Chrome Mobile','Safari','Firefox','Yandex.Browser','Opera','IE','Mozilla','Silk','Yandex.Browser mobile','Mobile Firefox','Puffin','Chromium','Waterfox','Opera Mobile','PS4 Web browser','Android browser','Sogou Explorer','IE Mobile','Maxthon','PS Vita browser','unknown','','Apple Mail'))
|
||||
GROUP BY 1;
|
||||
+-----------------------+--------+
|
||||
| Browser | count |
|
||||
+-----------------------+--------+
|
||||
| | 10 |
|
||||
| Android browser | 52 |
|
||||
| Apple Mail | 7 |
|
||||
| Chrome Mobile | 60173 |
|
||||
| Chromium | 149 |
|
||||
| Firefox | 8307 |
|
||||
| IE | 1238 |
|
||||
| IE Mobile | 35 |
|
||||
| Maxthon | 34 |
|
||||
| Mobile Firefox | 253 |
|
||||
| Mobile Safari | 113617 |
|
||||
| Mozilla | 1224 |
|
||||
| Opera | 2819 |
|
||||
| Opera Mobile | 78 |
|
||||
| PS Vita browser | 19 |
|
||||
| PS4 Web browser | 77 |
|
||||
| Puffin | 240 |
|
||||
| Safari | 38323 |
|
||||
| Silk | 1050 |
|
||||
| Sogou Explorer | 51 |
|
||||
| Waterfox | 129 |
|
||||
| Yandex.Browser | 4258 |
|
||||
| Yandex.Browser mobile | 583 |
|
||||
| unknown | 17 |
|
||||
+-----------------------+--------+
|
||||
(24 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 16:24:25 IST 2024
|
||||
SELECT
|
||||
CAST(t."app_version" AS VARCHAR) AS "app_version",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00')
|
||||
GROUP BY 1
|
||||
ORDER BY "count" DESC
|
||||
LIMIT 10;
|
||||
+-------------+--------+
|
||||
| app_version | count |
|
||||
+-------------+--------+
|
||||
| 1.9.6 | 465346 |
|
||||
+-------------+--------+
|
||||
(1 row)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 16:24:25 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile','Safari','Firefox','Yandex.Browser','Opera','IE','Mozilla','Silk','Yandex.Browser mobile','Mobile Firefox','Puffin','Chromium','Waterfox','Opera Mobile','PS4 Web browser','Android browser','Sogou Explorer','IE Mobile','Maxthon','PS Vita browser','unknown','','Apple Mail')) AND (CAST(t."app_version" AS VARCHAR)='1.9.6'))
|
||||
GROUP BY 1;
|
||||
+-----------------------+--------+
|
||||
| Browser | count |
|
||||
+-----------------------+--------+
|
||||
| | 10 |
|
||||
| Android browser | 52 |
|
||||
| Apple Mail | 7 |
|
||||
| Chrome | 232603 |
|
||||
| Chrome Mobile | 60173 |
|
||||
| Chromium | 149 |
|
||||
| Firefox | 8307 |
|
||||
| IE | 1238 |
|
||||
| IE Mobile | 35 |
|
||||
| Maxthon | 34 |
|
||||
| Mobile Firefox | 253 |
|
||||
| Mobile Safari | 113617 |
|
||||
| Mozilla | 1224 |
|
||||
| Opera | 2819 |
|
||||
| Opera Mobile | 78 |
|
||||
| PS Vita browser | 19 |
|
||||
| PS4 Web browser | 77 |
|
||||
| Puffin | 240 |
|
||||
| Safari | 38323 |
|
||||
| Silk | 1050 |
|
||||
| Sogou Explorer | 51 |
|
||||
| Waterfox | 129 |
|
||||
| Yandex.Browser | 4258 |
|
||||
| Yandex.Browser mobile | 583 |
|
||||
| unknown | 17 |
|
||||
+-----------------------+--------+
|
||||
(25 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 16:24:30 IST 2024
|
||||
SELECT
|
||||
CAST(t."adblock_list" AS VARCHAR) AS "adblock_list",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00')
|
||||
GROUP BY 1
|
||||
ORDER BY "count" DESC
|
||||
LIMIT 1000;
|
||||
+----------------------------+--------+
|
||||
| adblock_list | count |
|
||||
+----------------------------+--------+
|
||||
| NoAdblock | 424282 |
|
||||
| EasyList | 40579 |
|
||||
| EasyList,AntiAdblockKiller | 401 |
|
||||
| AntiAdblockKiller | 84 |
|
||||
+----------------------------+--------+
|
||||
(4 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 16:24:30 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile','Safari','Firefox','Yandex.Browser','Opera','IE','Mozilla','Silk','Yandex.Browser mobile','Mobile Firefox','Puffin','Chromium','Waterfox','Opera Mobile','PS4 Web browser','Android browser','Sogou Explorer','IE Mobile','Maxthon','PS Vita browser','unknown','','Apple Mail')) AND (CAST(t."adblock_list" AS VARCHAR)='NoAdblock'))
|
||||
GROUP BY 1;
|
||||
+-----------------------+--------+
|
||||
| Browser | count |
|
||||
+-----------------------+--------+
|
||||
| Android browser | 52 |
|
||||
| Apple Mail | 6 |
|
||||
| Chrome | 197577 |
|
||||
| Chrome Mobile | 60013 |
|
||||
| Chromium | 36 |
|
||||
| Firefox | 5254 |
|
||||
| IE | 1210 |
|
||||
| IE Mobile | 35 |
|
||||
| Maxthon | 16 |
|
||||
| Mobile Firefox | 249 |
|
||||
| Mobile Safari | 113431 |
|
||||
| Mozilla | 1209 |
|
||||
| Opera | 1238 |
|
||||
| Opera Mobile | 78 |
|
||||
| PS Vita browser | 19 |
|
||||
| PS4 Web browser | 77 |
|
||||
| Puffin | 240 |
|
||||
| Safari | 37975 |
|
||||
| Silk | 1050 |
|
||||
| Sogou Explorer | 49 |
|
||||
| Waterfox | 112 |
|
||||
| Yandex.Browser | 3756 |
|
||||
| Yandex.Browser mobile | 583 |
|
||||
| unknown | 17 |
|
||||
+-----------------------+--------+
|
||||
(24 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 16:24:30 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
CAST(t."adblock_list" AS VARCHAR) AS "adblock_list",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE ((((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile','Safari','Firefox','Yandex.Browser','Opera','IE','Mozilla','Silk','Yandex.Browser mobile','Mobile Firefox','Puffin','Chromium','Waterfox','Opera Mobile','PS4 Web browser','Android browser','Sogou Explorer','IE Mobile','Maxthon','PS Vita browser','unknown','','Apple Mail')) AND (CAST(t."app_version" AS VARCHAR)='1.9.6')) AND CAST(t."adblock_list" AS VARCHAR) IN ('NoAdblock','EasyList','EasyList,AntiAdblockKiller'))
|
||||
GROUP BY 1,2;
|
||||
+-----------------------+----------------------------+--------+
|
||||
| Browser | adblock_list | count |
|
||||
+-----------------------+----------------------------+--------+
|
||||
| | EasyList | 10 |
|
||||
| Android browser | NoAdblock | 52 |
|
||||
| Apple Mail | EasyList | 1 |
|
||||
| Apple Mail | NoAdblock | 6 |
|
||||
| Chrome | EasyList | 34745 |
|
||||
| Chrome | EasyList,AntiAdblockKiller | 258 |
|
||||
| Chrome | NoAdblock | 197577 |
|
||||
| Chrome Mobile | EasyList | 146 |
|
||||
| Chrome Mobile | EasyList,AntiAdblockKiller | 11 |
|
||||
| Chrome Mobile | NoAdblock | 60013 |
|
||||
| Chromium | EasyList | 78 |
|
||||
| Chromium | EasyList,AntiAdblockKiller | 35 |
|
||||
| Chromium | NoAdblock | 36 |
|
||||
| Firefox | EasyList | 3014 |
|
||||
| Firefox | EasyList,AntiAdblockKiller | 39 |
|
||||
| Firefox | NoAdblock | 5254 |
|
||||
| IE | NoAdblock | 1210 |
|
||||
| IE Mobile | NoAdblock | 35 |
|
||||
| Maxthon | EasyList | 18 |
|
||||
| Maxthon | NoAdblock | 16 |
|
||||
| Mobile Firefox | EasyList | 4 |
|
||||
| Mobile Firefox | NoAdblock | 249 |
|
||||
| Mobile Safari | EasyList | 131 |
|
||||
| Mobile Safari | EasyList,AntiAdblockKiller | 40 |
|
||||
| Mobile Safari | NoAdblock | 113431 |
|
||||
| Mozilla | NoAdblock | 1209 |
|
||||
| Opera | EasyList | 1581 |
|
||||
| Opera | NoAdblock | 1238 |
|
||||
| Opera Mobile | NoAdblock | 78 |
|
||||
| PS Vita browser | NoAdblock | 19 |
|
||||
| PS4 Web browser | NoAdblock | 77 |
|
||||
| Puffin | NoAdblock | 240 |
|
||||
| Safari | EasyList | 348 |
|
||||
| Safari | NoAdblock | 37975 |
|
||||
| Silk | NoAdblock | 1050 |
|
||||
| Sogou Explorer | EasyList | 1 |
|
||||
| Sogou Explorer | EasyList,AntiAdblockKiller | 1 |
|
||||
| Sogou Explorer | NoAdblock | 49 |
|
||||
| Waterfox | EasyList,AntiAdblockKiller | 17 |
|
||||
| Waterfox | NoAdblock | 112 |
|
||||
| Yandex.Browser | EasyList | 502 |
|
||||
| Yandex.Browser | NoAdblock | 3756 |
|
||||
| Yandex.Browser mobile | NoAdblock | 583 |
|
||||
| unknown | NoAdblock | 17 |
|
||||
+-----------------------+----------------------------+--------+
|
||||
(44 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 16:24:31 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
CAST(t."adblock_list" AS VARCHAR) AS "adblock_list",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-26 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile','Safari','Firefox','Yandex.Browser','Opera','IE','Mozilla','Silk','Yandex.Browser mobile','Mobile Firefox','Puffin','Chromium','Waterfox','Opera Mobile','PS4 Web browser','Android browser','Sogou Explorer','IE Mobile','Maxthon','PS Vita browser','unknown','','Apple Mail')) AND CAST(t."adblock_list" AS VARCHAR) IN ('EasyList','EasyList,AntiAdblockKiller'))
|
||||
GROUP BY 1,2;
|
||||
+----------------+----------------------------+-------+
|
||||
| Browser | adblock_list | count |
|
||||
+----------------+----------------------------+-------+
|
||||
| | EasyList | 10 |
|
||||
| Apple Mail | EasyList | 1 |
|
||||
| Chrome | EasyList | 34745 |
|
||||
| Chrome | EasyList,AntiAdblockKiller | 258 |
|
||||
| Chrome Mobile | EasyList | 146 |
|
||||
| Chrome Mobile | EasyList,AntiAdblockKiller | 11 |
|
||||
| Chromium | EasyList | 78 |
|
||||
| Chromium | EasyList,AntiAdblockKiller | 35 |
|
||||
| Firefox | EasyList | 3014 |
|
||||
| Firefox | EasyList,AntiAdblockKiller | 39 |
|
||||
| Maxthon | EasyList | 18 |
|
||||
| Mobile Firefox | EasyList | 4 |
|
||||
| Mobile Safari | EasyList | 131 |
|
||||
| Mobile Safari | EasyList,AntiAdblockKiller | 40 |
|
||||
| Opera | EasyList | 1581 |
|
||||
| Safari | EasyList | 348 |
|
||||
| Sogou Explorer | EasyList | 1 |
|
||||
| Sogou Explorer | EasyList,AntiAdblockKiller | 1 |
|
||||
| Waterfox | EasyList,AntiAdblockKiller | 17 |
|
||||
| Yandex.Browser | EasyList | 502 |
|
||||
+----------------+----------------------------+-------+
|
||||
(20 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 16:24:36 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
CAST(t."adblock_list" AS VARCHAR) AS "adblock_list",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile','Safari','Firefox','Yandex.Browser','Opera','IE','Mozilla','Silk','Yandex.Browser mobile','Mobile Firefox','Puffin','Chromium','Waterfox','Opera Mobile','PS4 Web browser','Android browser','Sogou Explorer','IE Mobile','Maxthon','PS Vita browser','unknown','','Apple Mail')) AND CAST(t."adblock_list" AS VARCHAR) IN ('NoAdblock','EasyList','EasyList,AntiAdblockKiller'))
|
||||
GROUP BY 1,2;
|
||||
+---------+--------------+-------+
|
||||
| Browser | adblock_list | count |
|
||||
+---------+--------------+-------+
|
||||
+---------+--------------+-------+
|
||||
(0 rows)
|
||||
|
||||
!ok
|
||||
# Wed Jul 10 16:24:37 IST 2024
|
||||
SELECT
|
||||
CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) AS "Browser",
|
||||
CAST(t."adblock_list" AS VARCHAR) AS "adblock_list",
|
||||
(COUNT(*)) AS "count"
|
||||
FROM "kttm_nested" AS t
|
||||
WHERE ((((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)<TIMESTAMP '2019-08-25 00:00:00') AND CAST(JSON_VALUE("t"."agent",'$.browser') AS VARCHAR) IN ('Chrome','Mobile Safari','Chrome Mobile','Safari','Firefox','Yandex.Browser','Opera','IE','Mozilla','Silk','Yandex.Browser mobile','Mobile Firefox','Puffin','Chromium','Waterfox','Opera Mobile','PS4 Web browser','Android browser','Sogou Explorer','IE Mobile','Maxthon','PS Vita browser','unknown','','Apple Mail')) AND (CAST(t."app_version" AS VARCHAR)='1.9.6')) AND CAST(t."adblock_list" AS VARCHAR) IN ('NoAdblock','EasyList','EasyList,AntiAdblockKiller'))
|
||||
GROUP BY 1,2;
|
||||
+---------+--------------+-------+
|
||||
| Browser | adblock_list | count |
|
||||
+---------+--------------+-------+
|
||||
+---------+--------------+-------+
|
||||
(0 rows)
|
||||
|
||||
!ok
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue