Skip to content

Add map_flatten fallback to struct_flatten - #3273

Merged
texodus merged 2 commits into
masterfrom
map-flatten
Nov 4, 2026
Merged

texodus merged 2 commits into
masterfrom
map-flatten

Conversation

@texodus

@texodus texodus commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

This PR adds map_flatten, a cousin to struct_flatten added in #3272, which specialized this behavior to Map types only. This is useful for projects like csp-gateway which distinguish between these types. "Backwards compatible" with struct_flatten which map_flatten uses as a fallback when unspecified, but struct_flatten was never in a released version either so this is just a simplicity note.

Also adds a new mode for struct_flatten, map_flatten and list_flatten: "stringify_formatted", a variant of "stringify" which behaves like View::to_json with the formatted flag w.r.t. datetime and date columns.

Signed-off-by: Andrew Stein <steinlink@gmail.com>
@texodus texodus added the enhancement Feature requests or improvements label Nov 4, 2026
…latten modes

Signed-off-by: Andrew Stein <steinlink@gmail.com>
@texodus
texodus merged commit 108b72a into master Nov 4, 2026
40 of 41 checks passed
@texodus
texodus deleted the map-flatten branch November 4, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Feature requests or improvements

Development

Successfully merging this pull request may close these issues.

1 participant