Re: [Discussion] Implement delete and update feature in carbondata SDK.
+1 Can we add a commit method to support multiple operations at once? CarbonSDKUID .delete(...) .delete(...) .update(...) .commit - Best Regards David Cai -- Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/
Re: [Discussion] Implement delete and update feature in carbondata SDK.
Hi Venu, In public CarbonSDKUID update(String path, String column, String value, String updColumn, String updValue); Api. We will preapre filterExpression from arguments column and value and updateColumnToValue mapping from arguments updColumn and updValue. After preparing this information we will call this API (public void update(String path, Expression expression, Map columnToValue)) internally. User can directly call this API (public void update(String path, Expression expression, Map columnToValue)) by providing filterExpression and UpdateMapping or he can just pass the column name and value and we will prepare this information internally. Thanks, Karan -- Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/
Re: [Discussion] Implement delete and update feature in carbondata SDK.
+1 Have a small query regaridng this update API - public CarbonSDKUID update(String path, String column, String value, String updColumn, String updValue); I believe column argument is column to be matched for the given value argument. so it is matchColumn & matchValue. Upon match we update updColumn with the given updValue argument. Question is why not we have map of updateColumnToValue ? I mean, like the one similar to another update API(public void update(String path, Expression expression, Map columnToValue);) that you have added in it ? Thanks, Venu -- Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/
Re: [Discussion] Implement delete and update feature in carbondata SDK.
+ 1 I have a question. For each update and delete operation, carbon will create a delta file to keep deleted row ids. For sequential update and delete operation using CarbonSDK, will these delta files will be compacted to single delta file using horizontal compaction? Regards, Indhumathi -- Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/