Skip to content

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.

@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