a026ae0592
* feat: add inlineDataValueClasue rule * test: update tests of select statements * feat: support flinksql window TVF grammar * test: flink sql windown TVF statement test * feat: support grouping sets grammar * test: window TVF Aggregation and Group Window Aggregation tests * test: supplemental selectAggregation with test cases * test: add Having statement test case * feat: support flinkSql over aggregation grammar * test: add over aggregation grammar test cases * test: flink sql join statement test cases * test: flink sql set Operations grammar test cases * test: flink sql limit clause test case * feat: remove allPlusUid and replace with uid * feat: support flink sql pattern recognition grammar * test: flink sql pattern recognition tests * feat: add flink sql with clause rule * test: flink sql with clasue select tests * feat: rebuild flink sql parser
28 lines
528 B
SQL
28 lines
528 B
SQL
-- UNION
|
|
(SELECT s FROM t1) UNION (SELECT s FROM t2);
|
|
|
|
(SELECT s FROM t1) UNION ALL (SELECT s FROM t2);
|
|
|
|
-- INTERSECT
|
|
(SELECT s FROM t1) INTERSECT (SELECT s FROM t2);
|
|
|
|
(SELECT s FROM t1) INTERSECT ALL (SELECT s FROM t2);
|
|
|
|
-- EXPECT
|
|
(SELECT s FROM t1) EXCEPT (SELECT s FROM t2);
|
|
|
|
(SELECT s FROM t1) EXCEPT ALL (SELECT s FROM t2);
|
|
|
|
-- IN
|
|
SELECT user, amount
|
|
FROM Orders
|
|
WHERE product IN (
|
|
SELECT product FROM NewProducts
|
|
)
|
|
|
|
-- EXISTS
|
|
SELECT user, amount
|
|
FROM Orders
|
|
WHERE product EXISTS (
|
|
SELECT product FROM NewProducts
|
|
) |