pub fn column_is_numeric(fields: &[Field], name: &str) -> boolAvailable on crate features
sink-spanner or source-spanner only.Expand description
Whether the named column in a result’s metadata is Spanner NUMERIC.
The source uses this to reject an incremental-replication cursor on a NUMERIC
column: NUMERIC decodes to a JSON string (to preserve precision), so the
generic replication comparison orders it lexicographically ("9" > "10"),
which would advance the bookmark incorrectly and skip or re-read rows. INT64
(JSON number) and TIMESTAMP/DATE (RFC-3339 string, lexicographic == chrono)
cursors are unaffected. Checked once the first page’s metadata is known.