You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my initial reaction is skepticism. If you try to reference a non-existent field in e.g. an update you get an error. This is important because if we just silently skip merging elements like this, people might think that they're performing a write when in fact nothing gets written to disk. I might be able to be convinced otherwise, though.
Specifically, I'm worried about your semantics for queries like:
table.update{|row| {c: row['a']+1}# errortable.update{|row| {subrows: row['subrows'].merge{|subrow| {c: subrow['a']+1}}}}# not an error
I'm also opposed to having merge silently ignoring errors.
The merge comnand is common in write queries and we shouldn't let users get inconsistent data in their model.
I think it's for that reason that we didn't have null propagates when errors were occurring.
Activity
neumino commentedon Dec 4, 2013
I'm also opposed to having merge silently ignoring errors.
The
mergecomnand is common in write queries and we shouldn't let users get inconsistent data in their model.I think it's for that reason that we didn't have
nullpropagates when errors were occurring.