Skip to content

Refactor JSONB and JSON conversion logic #4595

Closed

Description

@Xuanwo

In #4577, we introduced JSONB conversion logic to enable UDFs on JSONB instead of JSON.

https://github.com/lancedb/lance/blob/a65857a0eada4a5129ec55b28b34a67f81023835/rust/lance/src/dataset/utils.rs#L144-L185

However, this approach feels like a workaround, as we currently lack the capability to modify data types and schema at read or write time. While users see JSON types, all underlying operations still target JSONB.

We need to design or revise this logic to determine the most appropriate long-term solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions