聊聊flink Table的Set Operations
序 本文主要研究一下flink Table的Set Operations 实例 Union Table left = tableEnv.fromDataSet(ds1, "a, b, c"); Table right = tableEnv.fromDataSet(ds2, "a, b, c"); Table result = left.union(right); union方法类似sql的union UnionAll Table left = tableEnv.fromDataSet(ds1, "a, b, c"); Table right = tableEnv.fromDataSet(ds2, "a, b, c"); Table result = left.unionAll(right); unionAll方法类似sql的union all Intersect Table left = tableEnv.fromDataSet(ds1, "a, b, c"); Table right = tableEnv.fromDataSet(ds2, "d, e, f"); Table result = left.intersect(right); intersect方法类似sql的intersect IntersectAll Table left = tableEnv