Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor ESQL CcsUtils #116121

Merged
merged 4 commits into from
Nov 2, 2024
Merged

Conversation

quux00
Copy link
Contributor

@quux00 quux00 commented Nov 1, 2024

Finalized refactorings from closed PR https://github.com/elastic/elas…ticsearch/pull/115976
This is a pure refactoring PR. No new code has been added other than two new tests in
EsqlSessionCCSUtilsTests.java.

@quux00 quux00 added >refactoring Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) auto-backport Automatically create backport pull requests when merged :Analytics/ES|QL AKA ESQL v9.0.0 v8.17.0 labels Nov 1, 2024
@elasticsearchmachine
Copy link
Collaborator

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

for (FieldCapabilitiesFailure failure : failures) {
if (ExceptionsHelper.isRemoteUnavailableException(failure.getException())) {
for (String indexExpression : failure.getIndices()) {
if (indexExpression.indexOf(RemoteClusterAware.REMOTE_CLUSTER_INDEX_SEPARATOR) > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Are index expressions already parsed here? E.g. remote/index wildcards, etc.?

Copy link
Contributor Author

@quux00 quux00 Nov 1, 2024

Choose a reason for hiding this comment

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

Yes. It is called in IndexResolver after calling field-caps. It sifts through the FieldCapsResponse failure list.
This is not new code. I just moved this method out of IndexResolver into the utils method, as Costin had requested in my earlier PR.

@quux00 quux00 merged commit 2079e8c into elastic:main Nov 2, 2024
16 checks passed
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.x

quux00 added a commit to quux00/elasticsearch that referenced this pull request Nov 2, 2024
quux00 added a commit to quux00/elasticsearch that referenced this pull request Nov 2, 2024
elasticsearchmachine pushed a commit that referenced this pull request Nov 3, 2024
* Finalized refactorings from closed PR #115976 (#116121)

Pure refactoring PR

* Muting tests that are muted on main but not 8.x so I can get the backport to succeed

* Muting tests that are muted on main but not 8.x so I can get the backport to succeed, part 2
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL auto-backport Automatically create backport pull requests when merged >refactoring Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants