Login  Register

Re: Support updating/deleting data for stream table

Posted by Liang Chen on May 30, 2018; 3:51pm
URL: http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/Support-updating-deleting-data-for-stream-table-tp51060p51147.html

Hi

Thank you started this discussion thread.
Agree with solution1, use the easy way to delete data for stream table.

Regards
Liang

xm_zzc wrote

> Hi dev:
>   Sometimes we need to delete some historical data from stream table to
> make
> the table size not too large, but currently the stream table can't support
> updating/deleting data, so we need to stop the app and use 'alter table
> COMPACT 'close_streaming' command to close stream table, and then delete
> data.
>   According to discussion with Jacky and David offline, there are two
> solutions to resolve this without stopping app:
>  
>   1. set all
*
> non-stream
*

>  segments to 'carbon.input.segments.tablename'
> property to delete data except stream segment, this's easy to implement,
> but not very precise when there are data stored in stream segments.
>   2. support deleting data for stream segment too, this's more
> complicated, but precise.
>  
>   I think we can implement with solution 1 first, and then consider the
> implementation of solution 2 in depth.
>  
>   Welcome to feedback, thanks.
>
>
>
> --
> Sent from:
> http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/





--
Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/