Add STRUCT and LIST support for Arrow/JSON, fix DuckDB Arrow coercion - #3210
Merged
Conversation
STRUCT and LIST support for Arrow/JSON, fix VSTRUCT and LIST support for Arrow/JSON, fix DuckDB Arrow coercion
texodus
force-pushed
the
virtual-server-arrow-jamboree
branch
from
August 9, 2026 15:40
c7ae845 to
79cdb81
Compare
Signed-off-by: Andrew Stein <steinlink@gmail.com>
texodus
force-pushed
the
virtual-server-arrow-jamboree
branch
from
August 9, 2026 18:46
79cdb81 to
80f4303
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Nested
struct/listingest for Arrow and JSONperspective-servernow accepts ArrowLISTandSTRUCTcolumns, as well as JSON/NDJSONArrayandObjectcolumns, via column expansion. This change makes it much easier to wire existing Arrow and JSON feeds from e.g. Kafka orcspdirectly into a PerspectiveTablewithout marshalling and transforming the input (and substantially reducing column copies when the transfer encoding is Arrow, since Perspective can route this directly).struct/ object → one dotted column per leaf, recursively. A null parentnulls every descendant (e.g.
structitself is not nullable).list/ array → controlled by a newlist_flattentable option:zip(default) — one row per element, non-list siblings repeated; anempty list yields one null row; multiple lists in a record must share a
length.
cartesian— cartesian product.stringify—JSON.stringify.Virtual server window aggregates and type coercion
Features::window_aggregatescarried a bare list of names per column type, which forced the SQL translation to know each function's shape. It now encodes these as genericWindowAggSpec, mirroring the existing declaredAggSpec, which allows the model to specify:frames— which frame kinds the function accepts (rows,range,cumulative, none).offset— takes a row offset.alpha— takes a smoothing factor, asemadoes.result_type— the output type.duckdb.pyandclickhouse.pyvirtual servers have updated their window aggregate catalogs against it, including ranking functions that take no source column and derived ones likerate. New backends should be able to add arbitrary window aggregates via the descriptor language.Arrow type coercion
Completes the DuckDB/Arrow type coercion work started in #3151 with the additional missing types (sans
arrow-compute). Add support forDECIMAL,TINYINT,ENUM, the unsigned types and timezone-carrying timestamps at any unit, fixes #3149EDIT: This includes
timestamp(μs, "UTC")which also has tests