Skip to content

[ES|QL] Channels issue when an agg is called with the same field (#142180)#142269

Merged
mouhc1ne merged 10 commits intoelastic:mainfrom
mouhc1ne:attributes-and-channels
Feb 27, 2026
Merged

[ES|QL] Channels issue when an agg is called with the same field (#142180)#142269
mouhc1ne merged 10 commits intoelastic:mainfrom
mouhc1ne:attributes-and-channels

Conversation

@mouhc1ne
Copy link
Copy Markdown
Contributor

@mouhc1ne mouhc1ne commented Feb 11, 2026

  • Preserve duplicate attributes when the same field is passed twice in an agg function.
  • Add csv-test

…stic#142180)

- Preserve duplicate attributes when the same field is passed twice in an agg function.
Copy link
Copy Markdown
Contributor

@alex-spies alex-spies left a comment

Choose a reason for hiding this comment

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

Thanks @mouhc1ne , fix looks correct to me!

If CI doesn't complain, let's add some tests (esp. a reproducer for the FIRST/LAST bug this fixes) and reach out to Nhat for additional review :)

- Add csv-test
- Explicitly reject null type from the second parameter of FIRST/LAST
Copy link
Copy Markdown
Member

@dnhatn dnhatn left a comment

Choose a reason for hiding this comment

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

Changes looks correct to me. Thanks @mouhc1ne.

Copy link
Copy Markdown
Contributor

@alex-spies alex-spies left a comment

Choose a reason for hiding this comment

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

Re-reviewed. The null-type fix looks separate and should maybe be a separate PR. Otherwise LGTM.

Copy link
Copy Markdown
Member

@dnhatn dnhatn left a comment

Choose a reason for hiding this comment

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

Looks great. Thanks @mouhc1ne

mouhc1ne and others added 3 commits February 26, 2026 15:52
…ibutes-and-channels

# Conflicts:
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java
@mouhc1ne mouhc1ne marked this pull request as ready for review February 26, 2026 20:55
@elasticsearchmachine elasticsearchmachine added the needs:triage Requires assignment of a team area label label Feb 26, 2026
@mouhc1ne mouhc1ne added >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) :Analytics/ES|QL AKA ESQL labels Feb 26, 2026
@elasticsearchmachine elasticsearchmachine removed the needs:triage Requires assignment of a team area label label Feb 26, 2026
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@mouhc1ne mouhc1ne merged commit bbf9908 into elastic:main Feb 27, 2026
35 checks passed
szybia added a commit to szybia/elasticsearch that referenced this pull request Feb 27, 2026
…cations

* upstream/main:
  Warn on API key version mismatch (elastic#143127)
  Fixed wrong malformed value ordering in synthetic source tests (elastic#143187)
  [ML] Fix: required_native_memory_bytes Calculated with Wrong Allocation Count (elastic#143077)
  Add configureBenchmarkLogging calls across the various benchmarks (elastic#143185)
  Mute org.elasticsearch.xpack.esql.CsvIT test {csv-spec:k8s-timeseries-avg-over-time.Avg_over_time_aggregate_metric_double_implicit_casting} elastic#143292
  Give system role permission to invoke shard refresh (elastic#143190)
  Mute testSyntheticSourceWithTranslogSnapshot (elastic#143260)
  Adds ResumeInfo Tests (elastic#142769)
  Use a static method to configure benchmark logging (elastic#143056)
  add connectors release notes (elastic#142884)
  Add CI triage guidance for AI agents (elastic#142994)
  ESQL: Data sources: ZSTD, BZIP2 (elastic#143228)
  [ES|QL] Channels issue when an agg is called with the same field (elastic#142180) (elastic#142269)
  Add support for project routing in reindex requests (elastic#142240)
tballison pushed a commit to tballison/elasticsearch that referenced this pull request Mar 3, 2026
…stic#142180) (elastic#142269)

- Preserve duplicate attributes when the same field is passed twice in an agg function.
- Add csv-test and capability
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants