flink图表:analyze流程图

1、analyzetable流程图以tpc-ds生成的表作为例子,先从短小的reason表开始。它一共有3个字段,分别是r_reason_sk,r_reason_id,r_reason_desc。

2、流程图为一条直线,如下图所示,分别A、B、C三个方块。

flink图表:analyze流程图_第1张图片

3、A方块表达了从外部注入表的相关信息,table名,table中的字段名,长度等等。

4、B方块readfields,首先读入了三个字段信息,然后table整个传入buffer缓冲中,table保存在default_catalog,default_database,以reason表明保存。接着,select: (1 AS $f0, r_reason_sk, r_reason_id, CAST(CHAR_LENGTH(r_reason_id)) AS $f3, CHAR_LENGTH(r_reason_id) AS $f4, r_reason_desc, CAST(CHAR_LENGTH(r_reason_desc)) AS $f6, CHAR_LENGTH(r_reason_desc) AS $f7),然后,select:(Partial_COUNT(*) AS count1$0, Partial_COUNT(APPROXIMATE DISTINCT r_reason_sk) AS $f1, Partial_COUNT(r_reason_sk) AS count$1, Partial_MAX(r_reason_sk) AS max$2, Partial_MIN(r_reason_sk) AS min$3, Partial_COUNT(APPROXIMATE DISTINCT r_reason_id) AS $f5, Partial_COUNT(r_reason_id) AS count$4, Partial_AVG($f3) AS (sum$5, count$6), Partial_MAX($f4) AS max$7, Parti

你可能感兴趣的:(Flink)