Flink SQL 知其所以然:基础 DML SQL 执行语义!

1.DML:With 子句? 应用场景(支持 Batch\Streaming):With 语句和离线 Hive SQL With 语句一样的,xdm,语法糖 1,使用它可以让你的代码逻辑更加清晰。直接上案例:-- 语法糖 1

WITH orders_with_total AS (

SELECT

order_id

, price tax AS total

FROM Orders

)

SELECT

order_id

, SUM(total)

FROM orders_with_total

GROUP BY

order_id;2.DML:SELECT

THE END
Copyright © 2024 亿华云