Repository navigation
fix(core): text rendering of nested objects and lists is recursive - #471
Merged
Merged
Conversation
…CHEMA-17) Story SCHEMA-17-R171. Reviewed: r0:must-fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… rendering cost exactly (SCHEMA-17) A NULL cell still reads as NULL (JDBC getString returns null, the Arrow VARCHAR slot is null). The scaladoc's cost sentence names what a nested rendering still allocates: a non-text leaf's or key's own text and nested bytes' base64. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ds (SCHEMA-17) The Elasticsearch 6 / 7 clients read _source without the document's key order, the 8 / 9 clients keep it. The row now builds the multi-key object's expected text in the received map's own iteration order, so it pins the rendering rule on every client. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fupelaqu
marked this pull request as ready for review
November 21, 2026 11:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A value's text now spells nested lists and objects recursively. This is the text the JDBC driver's
getStringand an ArrowVARCHARcell give. Until now, an object or list nested in another came out as a Scala class name ({x: 1, y: ListMap(z -> 2)},List(2, 3)), and nested bytes came out as an object hash ([B@1b6d3586).Change
ValueCoercion.coerceToStringspells every nested value by its own rule, at any depth, in the existing style:{x: 1, y: {z: 2}},[1, [2, 3]],[{a: 1}, {a: 2}];null. A NULL cell is still a NULL.toString:Option, Java collections, ScalaSet, arrays other thanArray[Byte], mutable Scala collections. Core puts none of them in a row cell. The top-hitsbucket_root(anOption) reads as before.documentation/client/gateway.mdstates the rule.Testing
sqlValueCoercionSpec: the new cases fail on the base commit (3 of 13) and pass here, 13/13. They cover nested objects, lists of lists, lists of objects, nested bytes, nested NULLs, depth 3, and byte pins for every flat form. CoreResultSchemaSpecpasses.+ compilepasses on Scala 2.12 and 2.13.SchemaReadingSpecrow, over a disabledobjectfield holding nested objects, lists of objects and lists of lists, through both the LIMIT and the scroll routes: 1/1;JavaClientSchemaConsumer*: 16/16.Release note
JDBC
getStringand Arrow text cells spell nested objects and lists recursively ({x: 1, y: {z: 2}}), and nested bytes as base64, instead of a Scala class name or an object hash. Flat values are unchanged. There is no case-class arity change, so downstream modules only need the next core snapshot.🤖 Generated with Claude Code