Skip to content

[Variant] Support list paths in ShreddedSchemaBuilder #10615

Closed

Description

@sdf-jkl

Is your feature request related to a problem or challenge?

ShreddedSchemaBuilder is syntactic sugar for constructing the DataType passed to shred_variant. It can construct nested structs, but valid paths containing an index currently reach unreachable!:

ShreddedSchemaBuilder::new()
    .with_path("items[0].id", &DataType::Int64)?

Core list shredding is already supported; only schema construction through the builder is missing. This was deferred during #8940 until list shredding was implemented in #8831.

Describe the solution you would like

Add a list node to VariantSchemaNode and allow paths to descend into the shared list element schema:

items[0].id -> Struct<items: List<Struct<id: Int64>>>

Possible path syntax:

  • Use [0] as the conventional list-element marker, as suggested in Add builder to help create Schemas for shredding (ShreddedSchemaBuilder) #8940. Nonzero indices could be rejected or treated equivalently.
  • Support JSONPath-style [*], which expresses the intent more clearly. This would require either builder-specific parsing or a wildcard path element without changing variant_get index semantics.

Lists should be supported at any nesting level. Unsupported forms should return an error rather than panic.

Additional context

Activity

  1. cakeni commented on Aug 11, 2026

    @cakeni
    Contributor

    take

  2. added a commit that references this issue on Sep 16, 2026
    06411df
  3. added 2 commits that reference this issue on Sep 18, 2026
    9ce47eb
    8b8c463
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions