Skip to content

parseJson implementation in VariantBuilder #3414

Closed

Description

@gaurav7261

Describe the enhancement requested

Every consumer of parquet-variant currently has to implement their own
JSON-to-Variant parsing (Spark, Kafka Connect, Flink, etc.). This adds
native parseJson() static methods to VariantBuilder using Jackson
streaming parser, ported from Apache Spark's production-proven logic.

  • Single-pass streaming (no intermediate JsonNode tree)
  • Smallest integer type selection (byte/short/int/long)
  • Decimal-first float handling, double fallback for scientific notation
  • Overloads for String input and pre-positioned JsonParser

https://github.com/apache/spark/tree/master/common/variant

Component(s)

Core

Activity

  1. added 2 commits that reference this issue on Mar 7, 2026
  2. steveloughran commented on Mar 19, 2026

    @steveloughran
    Contributor

    #3451 relates to this; that's an issue/pr for benchmarking variant operations.

  3. added a commit that references this issue on Mar 19, 2026
  4. added a commit that references this issue on Apr 14, 2026
  5. added 2 commits that reference this issue on Apr 24, 2026
  6. added a commit that references this issue on May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions