Skip to content

Fix FirstDocIdGroupingAggregatorFunction#139619

Merged
leontyevdv merged 3 commits intoelastic:mainfrom
leontyevdv:fix/first-doc-id-deduplication
Dec 17, 2025
Merged

Fix FirstDocIdGroupingAggregatorFunction#139619
leontyevdv merged 3 commits intoelastic:mainfrom
leontyevdv:fix/first-doc-id-deduplication

Conversation

@leontyevdv
Copy link
Copy Markdown
Contributor

The issue can be found here: #139511

The docVector.shardRefCounted() method expects a position, not a shard number.

Fix the algorithm of the doc collection. The wrong parameter has been
passed to the shardRefCounted() method.
@leontyevdv leontyevdv requested a review from a team December 16, 2025 15:32
@leontyevdv leontyevdv self-assigned this Dec 16, 2025
@leontyevdv leontyevdv added >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) :Analytics/ES|QL AKA ESQL Team:StorageEngine :StorageEngine/ES|QL Timeseries / metrics / PromQL / logsdb capabilities in ES|QL v9.3.0 labels Dec 16, 2025
@leontyevdv leontyevdv requested a review from kkrik-es December 16, 2025 15:33
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@leontyevdv leontyevdv marked this pull request as draft December 16, 2025 15:33
Copy link
Copy Markdown
Member

@kkrik-es kkrik-es left a comment

Choose a reason for hiding this comment

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

What about testing? Anything we can do, maybe with one group and 3 shards?

@leontyevdv
Copy link
Copy Markdown
Contributor Author

What about testing? Anything we can do, maybe with one group and 3 shards?

Yes, of course! I've moved the PR to draft for now. I'm adding the tests.

@leontyevdv leontyevdv requested a review from dnhatn December 16, 2025 17:49
@leontyevdv leontyevdv marked this pull request as ready for review December 16, 2025 17:49
@leontyevdv leontyevdv merged commit 2df4b50 into elastic:main Dec 17, 2025
35 checks passed
szybia added a commit to szybia/elasticsearch that referenced this pull request Dec 17, 2025
…-err-message

* upstream/main: (45 commits)
  Add sort field usage to telemetry (elastic#139530)
  ES|QL: Release CCS support for FORK (elastic#139630)
  Parameterize VectorSimilarityFunctionsTests on the similarity function (elastic#139516)
  fix broken links from ccs file move (elastic#139655)
  Update docs for v9.2.3 release (elastic#139479)
  Move tsdb bwc tests to x-pack/logsdb (elastic#139671)
  Fix FirstDocIdGroupingAggregatorFunction (elastic#139619)
  Fix release test for node_reduction profiling (elastic#139515)
  Unmute RestClientSingleHostIntegTests.testRequestResetAndAbort (elastic#139656)
  Unmute VerifyVersionConstantsIT.testLuceneVersionConstant (elastic#139644)
  Mute org.elasticsearch.repositories.gcs.GoogleCloudStorageBlobStoreRepositoryTests testReadNonExistingPath elastic#139665
  Mute org.elasticsearch.smoketest.WatcherYamlRestIT test {p0=mustache/10_webhook/Test webhook action with mustache integration} elastic#139663
  [ES|QL] Run aggregations on aggregate metric double with default metric (elastic#138647)
  Enable TDigest field mapper and ES|QL type (elastic#139607)
  Mute org.elasticsearch.index.mapper.HalfFloatSyntheticSourceNativeArrayIntegrationTests testSynthesizeArrayRandom elastic#139658
  Explicitly cleanup test index with shared data path (elastic#136048)
  Mute org.elasticsearch.xpack.core.action.XPackUsageResponseTests testVersionDependentSerializationWriteToOldStream elastic#139576
  Make XPackUsageResponseTests a wire serializing test case (elastic#139643)
  Mute org.elasticsearch.upgrades.UpgradeClusterClientYamlTestSuiteIT test {p0=mixed_cluster/90_ml_data_frame_analytics_crud/Start and stop old regression job} elastic#139654
  Relax error bounds for RandomizedTimeSeriesIT (elastic#139641)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL >non-issue :StorageEngine/ES|QL Timeseries / metrics / PromQL / logsdb capabilities in ES|QL Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) Team:StorageEngine v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants