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
144712: rowenc: handle encoding of NULL or missing vectors r=mw5h a=mw5h
Previously if the mutationSearch operator failed to find a partition for a vector because it was NULL or missing (e.g. being moved by fixup), rowenc would panic, causing the mutation to fail. This prevented the insertion of NULL vectors and would sometimes cause deletes to erroneously fail.
This patch allows mutationSearch to signal "partition not found, but it's okay" by sending a NULL partition instead of setting the partition value to nil. The 'nil' value now indicates a bad failure that should never happen whereas a NULL partition value means 'skip this row' ala a partial index.
Fixes: #144621
Release note (bug fix): NULL vectors can now be inserted into tables with vector indexes.
Co-authored-by: Matt White <[email protected]>
0 commit comments