Skip to content

fix(reader): preserve Thrift JSON type metadata - #396

Merged
vuanhphung merged 1 commit into
mainfrom
vu-phung_data/stack/kernel-thrift-json-type
Oct 13, 2026
Merged

vuanhphung merged 1 commit into
mainfrom
vu-phung_data/stack/kernel-thrift-json-type

Conversation

@vuanhphung

@vuanhphung vuanhphung commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

SEA manifests can now include type_json, but the kernel drops it. Deserialize the optional string and copy it verbatim into Spark:DataType:JsonType, alongside the existing Spark:DataType:SqlName mapping. Missing or null values leave Arrow payload metadata unchanged.

Validated with formatting, Clippy (-D warnings), and the full cargo test suite (1,039 unit tests plus integration and doc tests). A locally built PyO3 wheel with the Python SQL driver matched Thrift JSON metadata on all 30 staging (e2dogfood) column checks, including nested types and empty results. All 30 production (pecotesting) checks passed with JSON metadata absent. Unit tests cover explicit null, omitted values, exact string preservation, and existing metadata.

Related: PECOBLR-4124.


This PR was created with GitHub MCP.

Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ No issues identified by the review bot.

@vuanhphung
vuanhphung enabled auto-merge October 13, 2026 06:25
@vuanhphung vuanhphung added the integration-test Maintainer-only: triggers cross-repo integration tests. Auto-removed on push for re-review. label Oct 13, 2026
@github-actions

Copy link
Copy Markdown

Kernel integration tests triggered. View status. Results post back here as the "Kernel Integration Tests" check.

@vuanhphung
vuanhphung added this pull request to the merge queue Oct 13, 2026
Merged via the queue into main with commit 0a4d1ec Oct 13, 2026
31 of 33 checks passed
@vuanhphung
vuanhphung deleted the vu-phung_data/stack/kernel-thrift-json-type branch October 13, 2026 15:55

This branch was previously deployed

1 inactive deployment
azure-prod — 2438b16e Deployed Oct 13, 2026 by vuanhphung via v0 E2E surface #999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-assisted integration-test Maintainer-only: triggers cross-repo integration tests. Auto-removed on push for re-review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant