Skip to content

Document usage of JSONEachrow reader #2890

Open

Description

@chernser

Summary

Document briefly what is the idea and where to find examples
Define responsibilities
Note that feature is in beta

Also look into this comment:

JacksonJsonParserFactory builds a default ObjectMapper with no special number policy, while GsonJsonParserFactory uses ToNumberPolicy.BIG_DECIMAL so UInt64 and decimal JSON values are not materialized as Double. With JSON_DISABLE_NUMBER_QUOTING, Jackson-backed readers can lose precision or infer the wrong types for large integers and decimals.

Activity

  1. added
    documentation
    on Jun 24, 2026
  2. added theissue type on Jun 24, 2026
  3. added
    client
    on Jun 24, 2026
  4. added this to the 0.10.0 milestone on Jun 24, 2026
  5. modified the milestones: 0.10.0, 0.11.0 on Jul 22, 2026
  6. modified the milestones: 0.11.0, 0.12.0 on Oct 1, 2026
  7. added
    planned_work
    on Nov 18, 2026
  8. polyglotAI-bot commented on Nov 27, 2026

    @polyglotAI-bot
    Collaborator

    Recommendation: Keep open — docs update needed
    The Java docs pages do not describe the JSONEachRow reader, and the repo spec has a stale Gson section. The run confirms the precision note of the issue for decimals only.

    • Category: Docs
    • Classification: impact: none · area: Docs & project (JSONEachRow reader)
    • Status on main: Reproduced on main — on 8480ca001, docs/clickhouse-docs/client.mdx and jdbc.mdx have no JSONEachRow section. A client-v2 run (ClickHouse 26.11.2.4, json_disable_number_quoting) read toDecimal128('12345678901234567890.123456789', 9) as Double 1.2345678901234567E19 with JacksonJsonParserFactory; UInt64 max and Int64 2^53+1 stayed exact (BigInteger, Long). GsonJsonParserFactory gave BigDecimal for all three.
    • Breaking change: No
    • Duplicates / related: Related: Added reader for JSONEachRow format. Updated documentation and examples #2871 — the merged PR that added the reader, the spec, and the examples.

    Analysis: The reader is described only in the design spec docs/client-v2-json-support.md and in examples/client-v2-json-processors and examples/jdbc-v2-json-processors; no document says that it is beta. The spec section "Integer precision with Gson" (docs/client-v2-json-support.md:506) says that Gson can round integers and shows a factory with LONG_OR_DOUBLE, but GsonJsonParserFactory.java:31 already sets BIG_DECIMAL. JacksonJsonParserFactory.java:18 uses a default ObjectMapper, so a Decimal value loses precision with no error; this can be a separate bug issue.

    Automated triage by Polyglot AI. A maintainer makes the final decision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    clientdocumentationplanned_work

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions