Skip to content

[8.15] ESQL: Validate unique plan attribute names (#110488)#110966

Merged
elasticsearchmachine merged 2 commits intoelastic:8.15from
alex-spies:backport/8.15/pr-110488
Jul 17, 2024
Merged

[8.15] ESQL: Validate unique plan attribute names (#110488)#110966
elasticsearchmachine merged 2 commits intoelastic:8.15from
alex-spies:backport/8.15/pr-110488

Conversation

@alex-spies
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.15:

Questions ?

Please refer to the Backport tool documentation

* Enforce an invariant in our dependency checker so that logical plans never have duplicate output attribute names or ids.
* Fix ROW to not produce columns with duplicate names.
* Fix ResolveUnionTypes to not create multiple synthetic field attributes for the same union type.
* Add tests for commands using the same column name more than once.
* Update docs w.r.t. how commands behave if they are used with duplicate column names.

(cherry picked from commit da53921)

# Conflicts:
#	x-pack/plugin/esql/qa/testFixtures/src/main/resources/stats.csv-spec
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/optimizer/OptimizerRules.java
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plan/logical/Rename.java
@github-actions
Copy link
Copy Markdown
Contributor

Documentation preview:

@alex-spies alex-spies added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jul 17, 2024
These slipped in via merge conflicts.
@elasticsearchmachine elasticsearchmachine merged commit 1284a35 into elastic:8.15 Jul 17, 2024
@alex-spies alex-spies deleted the backport/8.15/pr-110488 branch July 17, 2024 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v8.15.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants