Skip to content

transform_values fails when map value column is Dictionary-encoded #25411

Closed

Description

@Rich-T-kid

transform_values breaks when the map's value field is Dictionary(K, V) encoded

Two problems:

  1. Planning: lambda_parameters exposes the raw Dictionary(K, V) type as the lambda variable type, but the lambda body expects the plain value type (Utf8). Type mismatch at planning time.

  2. Execution : even if planning passes, flat_values is a Dictionary array and the lambda body receives the wrong type.

should lambda have native support for dictionary instead of introducing a two-way cast?

Activity

  1. Rich-T-kid commented on Sep 17, 2026

    @Rich-T-kid
    ContributorAuthor
  2. LiaCastaneda commented on Sep 17, 2026

    @LiaCastaneda
    Contributor

    take

  3. LiaCastaneda commented on Sep 17, 2026

    @LiaCastaneda
    Contributor

    This can happen in any lambda, the error message is basically
    internal: LambdaVariable field and schema field mismatch Field { "p0": nullable Utf8 } != Field { "p0": nullable Dictionary(UInt32, Utf8) }

  4. added a commit that references this issue on Sep 25, 2026
    5da95ac
  5. added a commit that references this issue on Sep 25, 2026
    ae427aa
  6. added a commit that references this issue on Oct 11, 2026
    bcaa2d0
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