Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Parquet checkpointing adds null dictionary entries and rejects mixed JSON arrays

Đang mở
#1,045 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@nabinchha đang làm issue này rồi.

Từ ngày 19/10/2026.

  • #1062 của @nabinchha — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
pandas, python
Lĩnh vực
data

Hướng nghiên cứu

Start by running the attached repro.py scripts with and without --encode, then inspect the Parquet checkpoint writer and its read path. The issue reports failures for dictionaries and mixed JSON arrays in custom-column and structured-column outputs; identify where checkpoint serialization handles these values. Done means both cases round-trip with absent keys distinct from explicit nulls and mixed arrays stored successfully.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug needs-discussion
Priority Level

Medium (Annoying but has workaround)

Describe the bug

Data Designer 0.9.3 can alter dictionaries during Parquet storage and fail to store schema-valid mixed arrays.

Arrow inference treats dictionaries as structs, merging their keys and adding null values for absent entries:

Input:
{"fields": {"alpha": 1}}
{"fields": {"beta": 2}}

Restored:
{"fields": {"alpha": 1, "beta": null}}
{"fields": {"alpha": null, "beta": 2}}

This changes the data’s meaning by making absent keys indistinguishable from explicit null values.

Mixed arrays such as [1, "two", true, null] fail checkpoint writing with ArrowInvalid:

Could not convert 'two' with type str: tried to convert to int64

These problems affect custom-column outputs. They also occur with schema-declared structured outputs after isolating the separate parser bug in #1043.

Steps/Code to reproduce bug

The attached scripts use deterministic inputs and require no credentials or model calls.

Reproduce through custom columns, then verify the JSON-text workaround:

uv run --script repro.py
uv run --script repro.py --encode

Reproduce through LLMStructuredColumnConfig:

uv run --script repro_structured.py --case mixed-array
uv run --script repro_structured.py --case typed-map --respect-schema
uv run --script repro_structured.py --case json-map --respect-schema

repro_structured.py mocks model generation while retaining DD’s actual parsing, structured-column generation, and storage. It tests both Pydantic and JSON Schema declarations.

--respect-schema diagnostically disables the parser’s additionalProperties rewrite to isolate storage behavior. It does not change the storage writer. The mixed-array case reproduces without this diagnostic.

Tested with:

data-designer==0.9.3
pydantic==2.14.1
pandas==2.3.3
pyarrow==24.0.0

repro_structured.py
repro.py

Expected behavior

Supported dictionary and flexible JSON values should retain their contents through checkpoint writes and reads. Absent dictionary keys must remain distinguishable from explicit nulls, and schema-valid mixed arrays should be stored successfully

Agent Diagnostic / Prior Investigation

Bug was encountered when making changes to a DD pipeline. Issue content and reproduction scripts are AI generated and human reviewed.

Fixed records round-trip correctly. Explicitly encoding whole custom-column payloads as JSON text preserves dictionaries and mixed arrays. Disabling the separate parser rewrite does not resolve the storage failures.

Additional context

Split from #1043, which tracks valid dictionary entries being removed during parsing.

Checklist
  • I reproduced this issue or provided a minimal example
  • I searched the docs/issues myself, or had my agent do so
  • If I used an agent, I included its diagnostics above
Ngôn ngữ chính
Python
Star
2.4k
Fork
234
Merge trung bình
22 giờ 5 phút
Pull request đã merge (30 ngày)
70

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NVIDIA-NeMo/DataDesigner

Tất cả issue của NVIDIA-NeMo/DataDesigner

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.