Skip to content

Two streams Join Problem #2311

Answered by TennyZhuang
JackTan25 asked this question in Q&A
May 5, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Thanks for your interest in RisingWave!

Currently, RisingWave support Regular join and Window join (generally available).

See https://github.com/singularity-data/risingwave/blob/main/e2e_test/v2/streaming/join.slt for the regular join example.

For WindowJoin, RisingWave support Windowing TVF, then you can do window join like:

SELECT L.window_start, L.linenumber, L.quantity, O.orderstatus
FROM TUMBLE(lineitems, shipdate, INTERVAL '1' DAYS) as L
JOIN TUMBLE(orders, orderdate, INTERVAL '1' DAYS) as O
ON L.orderkey = O.orderkey and L.window_start = O.window_start;

Window table function is implemented recently, and we haven't documented it.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@JackTan25
Comment options

@TennyZhuang
Comment options

@JackTan25
Comment options

Answer selected by TennyZhuang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants