Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce a 'CASCADE' like keyword to enable efficient dropping of streams and tables. #2112

Open
sangli00 opened this issue Nov 2, 2018 · 5 comments

Comments

@sangli00
Copy link

sangli00 commented Nov 2, 2018

eg:

str1

create stream str1 as select col1 from  generic_stream;

str2:

create stream str2 as select col1 from str1 where ....

I need terminate str1_query_id and str2_query_id ,and drop str2 & str1

How to fast drop this stream,like Database cascade.

Thanks.

@apurvam
Copy link
Contributor

apurvam commented Nov 2, 2018

We don't have a CASCADE function right now as we think that it is better to require explicit termination and deletion since there is a possibility for losing data.

I'll mark this as an enhancement request.

@apurvam apurvam changed the title How to drop dependent tables? Introduce a 'CASCADE' like keyword to enable efficient dropping of streams and tables. Nov 2, 2018
@sangli00
Copy link
Author

sangli00 commented Nov 5, 2018

Now,How to fast drop table & stream in KSQL?

stream1...>...stream2....>...stream3...>...streamN dependent each others.
eg:
I drop stream1; need terminate stream2 and drop stream2
I drop stream2 need terminate stream3 and drop stream3
.....
I drop streamN; need terminate streamN-1 and drop streamN-1

@rmoff
Copy link
Contributor

rmoff commented Nov 15, 2018

Duplicate of #1317 - please upvote/comment there. Thanks.

@big-andy-coates
Copy link
Contributor

I'm not sure this is a duplicate of #1317. This is about cascading the delete of a hierarchy of streams, where as #1317 is about automatically terminating queries under a stream.

@miguno
Copy link
Contributor

miguno commented Dec 3, 2018

+1 from an offline discussion with a user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants