Skip to content

Conversation

@idegtiarenko
Copy link
Contributor

@idegtiarenko idegtiarenko commented Feb 7, 2025

Since #120355 now it is possible to generate patterns with remote and data math that are quoted as following: "remote":<index-{now/M{yyyy.MM.dd|+16:00}}>. | require indexPattern to be quoted. Unfortunately, the branch that is doing so was erroneously detecting quotes on clasterPattern only, not on entire identifier.

if (pattern.contains("|") && pattern.contains("\"") == false) {
pattern = quote(pattern);
}

This change fixes that.

Closes: #121990
Closes: #121968

@idegtiarenko idegtiarenko added >test Issues or PRs that are addressing/adding tests 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.19.0 v9.1.0 labels Feb 7, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@idegtiarenko idegtiarenko merged commit c92b7b5 into elastic:main Feb 7, 2025
17 checks passed
@idegtiarenko idegtiarenko deleted the fix_121990 branch February 7, 2025 10:14
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
9.0 Commit could not be cherrypicked due to conflicts
8.x Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 121996

idegtiarenko added a commit to idegtiarenko/elasticsearch that referenced this pull request Feb 7, 2025
elasticsearchmachine pushed a commit that referenced this pull request Feb 7, 2025
elasticsearchmachine pushed a commit that referenced this pull request Feb 7, 2025
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 Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >test Issues or PRs that are addressing/adding tests v8.19.0 v9.0.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] StatementParserTests testValidFromPattern failing [CI] StatementParserTests testInvalidJoinPatterns failing

4 participants