Skip to content

fix: add child field conversion support in JsonArrowSchemaConverter#187

Merged
jackye1995 merged 2 commits into
lance-format:mainfrom
LuQQiu:lu/fixedSizeList2
Aug 8, 2025
Merged

fix: add child field conversion support in JsonArrowSchemaConverter#187
jackye1995 merged 2 commits into
lance-format:mainfrom
LuQQiu:lu/fixedSizeList2

Conversation

@LuQQiu

@LuQQiu LuQQiu commented Aug 8, 2025

Copy link
Copy Markdown
Contributor

Fixes a critical bug in JsonArrowSchemaConverter where child fields for complex Arrow types (list, struct, map) were not being converted, causing "Lists have one child Field. Found: none" errors when creating Lance tables with array columns.

@LuQQiu LuQQiu requested review from Copilot and jackye1995 August 8, 2025 02:41
@github-actions github-actions Bot added bug Something isn't working java Java features labels Aug 8, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a critical bug in the JsonArrowSchemaConverter where child fields for complex Arrow types (list, struct, map) were not being converted, causing schema validation errors when creating Lance tables with array columns.

  • Adds recursive conversion of child fields for complex Arrow types
  • Maintains backward compatibility by handling cases where no child fields exist

@github-actions

github-actions Bot commented Aug 8, 2025

Copy link
Copy Markdown
Contributor

ACTION NEEDED
Lance follows the Conventional Commits specification for release automation.

The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification.

For details on the error please inspect the "PR Title Check" action.

…space/util/JsonArrowSchemaConverter.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@LuQQiu LuQQiu changed the title fix: Add child field conversion support in JsonArrowSchemaConverter fix: add child field conversion support in JsonArrowSchemaConverter Aug 8, 2025
@jackye1995 jackye1995 merged commit 6a70c96 into lance-format:main Aug 8, 2025
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working java Java features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants