collections/columnar_view_utils library

Columnar view of list<Map<String, Object?>> for analytics — roadmap #470.

Functions

columnValues(List<Map<String, Object?>> rows, String key) List<Object?>
Returns a single column key from rows as List<Object?>. Audited: 2026-06-12 11:26 EDT
toColumnar(List<Map<String, Object?>> rows) Map<String, List<Object?>>
Returns map of key -> list of values, using the keys of the FIRST row as the column schema. Keys that appear only in later rows are NOT included; rows missing a first-row key contribute null for that column. Pre-normalize the rows (union their keys) if every key must appear. Audited: 2026-06-12 11:26 EDT