Phoenix UPSERT partial row update column preservation
0 reputation · 28 Aug 2024, 00:58 UTC
Goal: confirm whether Phoenix UPSERT preserves existing column values when a statement updates only a subset of columns on an existing primary key.
Phoenix documents UPSERT as an insert-or-replace operation keyed by the primary key. It is not specified whether columns omitted from the statement retain their previous values, are set to null, or are replaced by defaults. This distinction affects partial row updates and idempotent write logic. The Phoenix client and server are assumed to use compatible protocol versions, and the target HBase release matches the Phoenix version line.
Questions:
- Does Phoenix UPSERT leave unspecified existing columns unchanged?
- Are omitted columns written as null or default values instead?
- Does column nullability or schema evolution change the replacement behavior?