Skip to content

Rework FieldMapper parameter tests to not use merge builders#145213

Merged
romseygeek merged 4 commits intoelastic:mainfrom
romseygeek:mappings/param-checks-avoid-build
Mar 31, 2026
Merged

Rework FieldMapper parameter tests to not use merge builders#145213
romseygeek merged 4 commits intoelastic:mainfrom
romseygeek:mappings/param-checks-avoid-build

Conversation

@romseygeek
Copy link
Copy Markdown
Contributor

We want to move away from generating Builders from FieldMappers, to reduce the amount of state needed on these long-lived objects. This changes the parameter tests on MapperTestCase and MetadataMapperTestCase so that they operate directly on MappingBuilders and don't require FieldMapper.getMergeBuilder() calls.

We want to move away from generating Builders from FieldMappers, to
reduce the amount of state needed on these long-lived objects.  This
changes the parameter tests on MapperTestCase and MetadataMapperTestCase
so that they operate directly on MappingBuilders and don't require
FieldMapper.getMergeBuilder() calls.
@romseygeek romseygeek self-assigned this Mar 30, 2026
@romseygeek romseygeek added >test Issues or PRs that are addressing/adding tests :StorageEngine/Mapping The storage related side of mappings v9.4.0 labels Mar 30, 2026
@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.

LGTM

@romseygeek romseygeek enabled auto-merge (squash) March 30, 2026 16:07
Copy link
Copy Markdown
Contributor

@gmarouli gmarouli left a comment

Choose a reason for hiding this comment

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

Nice!

@romseygeek romseygeek merged commit 9eb778d into elastic:main Mar 31, 2026
36 checks passed
pmpailis pushed a commit that referenced this pull request Mar 31, 2026
We want to move away from generating Builders from FieldMappers, to
reduce the amount of state needed on these long-lived objects.  This
changes the parameter tests on MapperTestCase and MetadataMapperTestCase
so that they operate directly on MappingBuilders and don't require
FieldMapper.getMergeBuilder() calls.
szybia added a commit to szybia/elasticsearch that referenced this pull request Mar 31, 2026
…rics

* upstream/main: (428 commits)
  ESQL: DS: Add inference/RERANK tests (elastic#145229)
  Unmute MMR logical plan test (elastic#145311)
  Do not attempt marking store as corrupted if the check is rejected due to shutdown (elastic#145209)
  feat(tsdb): add pipeline runtime and rename stage interfaces (elastic#145175)
  Fix UnresolvedException on PromQL by(step) grouping (elastic#145307)
  ES|QL: Optimize MMR by reducing cache size and lookup (elastic#145014)
  Prometheus labels/series APIs: support multiple match[] selectors (elastic#145298)
  Move ClientScrollablePaginatedHitSource into Reindex Module (elastic#144100)
  mute test class for elastic#145277
  CPS mode for ViewResolver (elastic#145219)
  [ESQL] Disables GroupedTopNBenchmark temporarily (elastic#145124)
  Make exponential_histogram the default histogram type for HTTP OTLP endpoint (elastic#145065)
  More tests requiring an explicit confidence interval (elastic#145232)
  ES|QL: Adding `USER_AGENT` command (elastic#144384)
  ESQL: enable Generative IT after more fixes (elastic#145112)
  Rework FieldMapper parameter tests to not use merge builders (elastic#145213)
  [ESQL] Fix ORC type support gaps (elastic#145074)
  [Test] Unmute FollowingEngineTests.testProcessOnceOnPrimary (elastic#145192)
  Add PrometheusSeriesRestAction for /_prometheus/api/v1/series endpoint (elastic#144494)
  Prometheus labels API: add rest action (elastic#144952)
  ...
ncordon pushed a commit to ncordon/elasticsearch that referenced this pull request Apr 1, 2026
…#145213)

We want to move away from generating Builders from FieldMappers, to
reduce the amount of state needed on these long-lived objects.  This
changes the parameter tests on MapperTestCase and MetadataMapperTestCase
so that they operate directly on MappingBuilders and don't require
FieldMapper.getMergeBuilder() calls.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:StorageEngine/Mapping The storage related side of mappings Team:StorageEngine >test Issues or PRs that are addressing/adding tests v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants