-
Notifications
You must be signed in to change notification settings - Fork 311
Open
Labels
status: ideal-for-contributionAn issue that a contributor can help us withAn issue that a contributor can help us withtype: enhancementA general enhancementA general enhancement
Description
Update stores one column name as key and one operation as value.
Line 49 in 67d8e59
private final Map<ColumnName, AssignmentOp> updateOperations; |
Because of this it is not possible to update several keys for column with map type.
Example of code:
CREATE TABLE data (fields map<VARCHAR, VARCHAR>);
List<Update.AssignmentOp> updateOperations = new LinkedList<>();
updateOperations.add(new Update.SetAtKeyOp(ColumnName.from("map"), "key1", "value1"));
updateOperations.add(new Update.SetAtKeyOp(ColumnName.from("map"), "key2", "value2"));
Update update = Update.of(updateOperations);
OR
Update update = Update.empty()
.set("map").atKey("key1").to("value1")
.set("map").atKey("key2").to("value2");
only one of operations will be present in update object.
Metadata
Metadata
Assignees
Labels
status: ideal-for-contributionAn issue that a contributor can help us withAn issue that a contributor can help us withtype: enhancementA general enhancementA general enhancement