ksql icon indicating copy to clipboard operation
ksql copied to clipboard

Support for Subqueries

Open vahidhashemian opened this issue 6 years ago • 7 comments

This may be covered under full implementation of stream-table and table-table join, but just in case, supporting subqueries would be a valuable addition to KSQL.

Simplified example: For the stream cart_action_stream (session, customer, product, cart_action) finding abandoned cart items of each customer can be done with this simplified query:

select customer, product from cart_action_stream
where cart_action='add'
and session in (select session from expired_sessions_table)
and (session, product, 'purchase') not in (select session, product, cart_action from cart_action_stream where)

where expired_sessions_table(session) is built via a separate query.

vahidhashemian avatar Feb 15 '18 19:02 vahidhashemian

Hi guys, I was trying to implement a feature with a subquery then I find that was not possible to do it. Is is in the Docs because I did not find it? If not, maybe is a good idea to include it.

Also do you have some estimate or roadmap so I can see when this kind of issues are gonna be solved?

frossi85 avatar Dec 06 '18 01:12 frossi85

Has any update? This is a very important feature.

ReasonDuan avatar May 08 '20 08:05 ReasonDuan

Happy New Year, everyone! Is the subquery capability being planned for a future release of ksqlDB within the next 12 months?

j3works avatar Jan 01 '21 15:01 j3works

Anything new about subqueries? This would be a great improvement of ksql :-)

Mall0c avatar Mar 16 '21 07:03 Mall0c

Any news?

SebaLopez94 avatar Jul 18 '22 14:07 SebaLopez94

Yes please. :)

nmatare avatar Aug 19 '22 20:08 nmatare

I guess I will follow the trend as I found myself needing subquery feature in KSQLDB for my current project. Any update?

ofelix03 avatar Aug 30 '22 12:08 ofelix03

Same here, any update on this?

sh3b avatar May 04 '23 14:05 sh3b

+1

JasonDWilson avatar Jul 25 '23 17:07 JasonDWilson