二十四、Flink进阶--Flink sql转换为JobGraph过程

1.转换图

在这里插入图片描述
1.sql解析得到sqlNode Tree
2.validator去FunctionCatalog验证udf相关,去CatalogManager验证database相关
3.验证通过会得到一个operation dag
4.opreation dag 转换为 relnode dag
5.优化器去优化relnode,大部分规则 batch和stream是共享的
6.优化后会的到execnode 经过大量的codegen转换为Transformation dag
7.transform dag 就和datastream编写的任务类型,经过 streamGraph和 JobGraph

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章