Skip to content

Refactored SortedNumericDocValuesSyntheticFieldLoader into a Layer#143912

Merged
Kubik42 merged 1 commit intoelastic:mainfrom
Kubik42:refactor-CompositeSyntheticFieldLoader
Mar 11, 2026
Merged

Refactored SortedNumericDocValuesSyntheticFieldLoader into a Layer#143912
Kubik42 merged 1 commit intoelastic:mainfrom
Kubik42:refactor-CompositeSyntheticFieldLoader

Conversation

@Kubik42
Copy link
Copy Markdown
Contributor

@Kubik42 Kubik42 commented Mar 9, 2026

This is a follow up for this comment.

Functionally, there are no changes - all of SortedNumericDocValuesSyntheticFieldLoader has essentially been moved to SortedNumericDocValuesSyntheticFieldLoaderLayer.

The point of this refactor is consistency. After changing the storage format for malformed values from stored fields to binary doc values, it became apparent that all field mappers use a CompositeSyntheticFieldLoader to handle the extra malformed value field loading. All, with the exception of ones using SortedNumericDocValuesSyntheticFieldLoader. Since there was no Layer alternative, we had to bundle binary doc values into SortedNumericDocValuesSyntheticFieldLoader, which is inconsistent and ugly. This PR addresses that.

@Kubik42 Kubik42 added Team:StorageEngine :StorageEngine/Mapping The storage related side of mappings labels Mar 9, 2026
@Kubik42 Kubik42 force-pushed the refactor-CompositeSyntheticFieldLoader branch 2 times, most recently from 7a0cfed to 5989118 Compare March 9, 2026 21:45
@Kubik42 Kubik42 force-pushed the refactor-CompositeSyntheticFieldLoader branch from 5989118 to eb3df55 Compare March 10, 2026 19:39
@Kubik42 Kubik42 marked this pull request as ready for review March 10, 2026 22:36
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

Copy link
Copy Markdown
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

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

Nice cleanup! 👍

@Kubik42 Kubik42 merged commit 2cf5fc3 into elastic:main Mar 11, 2026
36 checks passed
@Kubik42 Kubik42 deleted the refactor-CompositeSyntheticFieldLoader branch March 11, 2026 17:47
szybia added a commit to szybia/elasticsearch that referenced this pull request Mar 11, 2026
…elocations

* upstream/main: (54 commits)
  [ES|QL|DS] Wire parallel parsing into production for text formats (elastic#143997)
  ESQL: Allow EXTERNAL commands be run part of the CsvTests suite (elastic#143970)
  [ESQL] Push stats to external source via metadata (elastic#143940)
  Mute org.elasticsearch.xpack.esql.CsvIT test {csv-spec:approximation.Approximate stats with stats where} elastic#144051
  Refactored SortedNumericDocValuesSyntheticFieldLoader into a Layer (elastic#143912)
  Enable extended doc_values params feature flag in RandomizedRollingUpgradeIT (elastic#143918)
  Mute org.elasticsearch.xpack.esql.qa.multi_node.EsqlSpecIT test {csv-spec:approximation.Approximate stats with sample} elastic#144022
  Ensure we use float values for rolling upgrade float vectors (elastic#144032)
  Remove sensitive info from reindex task description (elastic#143635)
  Fix HistogramUnionState.equals (elastic#143990)
  Use dedicated IndexRouting API in ShardSplittingQuery (elastic#143776)
  Engine/Store DistributedArchitectureGuide doc (elastic#143818)
  Mute org.elasticsearch.snapshots.ConcurrentSnapshotsIT testDeletesAreBatched elastic#144034
  Avoid serializing exceptions as JSON in remote write endpoint (elastic#143987)
  allow testLoadDocSequenceReturnsCorrectResultsText to circuit break, it happens in serverless occasionally (elastic#144023)
  [ESQL] Adds memory accounting to GroupedLimitOperator (elastic#143941)
  Adjust ESIntegTestCase.getLiveDocs method to account for pruned sequence numbers (elastic#143999)
  Support target bucket count in `TBUCKET` with explicit from/to date range (elastic#142747)
  TSDBDocValuesFormatSingleNodeTests with and without synthetic id (elastic#144002)
  Fix circuit breaker leak in BreakingTDigestHolder (elastic#143873)
  ...
jdconrad pushed a commit to jdconrad/elasticsearch that referenced this pull request Mar 11, 2026
jdconrad pushed a commit to jdconrad/elasticsearch that referenced this pull request Mar 11, 2026
jdconrad pushed a commit to jdconrad/elasticsearch that referenced this pull request Mar 11, 2026
jdconrad pushed a commit to jdconrad/elasticsearch that referenced this pull request Mar 11, 2026
michalborek pushed a commit to michalborek/elasticsearch that referenced this pull request Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants