Last active
December 20, 2017 22:32
-
-
Save miguno/420dc9ef40254c5d51b9a4d09cf24b3d to your computer and use it in GitHub Desktop.
EXPLAIN example output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ksql> EXPLAIN ctas_ip_sum; | |
Type : QUERY | |
SQL : CREATE TABLE IP_SUM as SELECT ip, SUM(bytes)/1024 as kbytes FROM CLICKSTREAM WINDOW SESSION (300 SECONDS) GROUP BY ip; | |
Local runtime statistics | |
------------------------ | |
messages-per-sec: 104.38 total-messages: 14238 last-message: 12/14/17 4:30:42 PM GMT | |
failed-messages: 0 last-failed: n/a | |
(Statistics of the local KSQL Server interaction with the Kafka topic IP_SUM) | |
Execution plan | |
-------------- | |
> [ PROJECT ] Schema: [IP : STRING , KBYTES : INT64]. | |
> [ AGGREGATE ] Schema: [CLICKSTREAM.IP : STRING , CLICKSTREAM.BYTES : INT64 , KSQL_AGG_VARIABLE_0 : INT64]. | |
> [ PROJECT ] Schema: [CLICKSTREAM.IP : STRING , CLICKSTREAM.BYTES : INT64]. | |
> [ REKEY ] Schema: [CLICKSTREAM.ROWTIME : INT64 , CLICKSTREAM.ROWKEY : STRING , CLICKSTREAM._TIME : INT64 , CLICKSTREAM.TIME : STRING , CLICKSTREAM.IP : STRING , CLICKSTREAM.REQUEST : STRING , CLICKSTREAM.STATUS : INT32 , CLICKSTREAM.USERID : INT32 , CLICKSTREAM.BYTES : INT64 , CLICKSTREAM.AGENT : STRING]. | |
> [ SOURCE ] Schema: [CLICKSTREAM.ROWTIME : INT64 , CLICKSTREAM.ROWKEY : STRING , CLICKSTREAM._TIME : INT64 , CLICKSTREAM.TIME : STRING , CLICKSTREAM.IP : STRING , CLICKSTREAM.REQUEST : STRING , CLICKSTREAM.STATUS : INT32 , CLICKSTREAM.USERID : INT32 , CLICKSTREAM.BYTES : INT64 , CLICKSTREAM.AGENT : STRING]. | |
Processing topology | |
------------------- | |
Sub-topologies: | |
Sub-topology: 0 | |
Source: KSTREAM-SOURCE-0000000000 (topics: [clickstream]) | |
--> KSTREAM-MAP-0000000001 | |
Processor: KSTREAM-MAP-0000000001 (stores: []) | |
--> KSTREAM-TRANSFORMVALUES-0000000002 | |
<-- KSTREAM-SOURCE-0000000000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment