Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,6 @@ tests:
- class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
method: test {p0=search/350_point_in_time/point-in-time with index filter}
issue: https://github.com/elastic/elasticsearch/issues/127741
- class: org.elasticsearch.xpack.esql.optimizer.OptimizerRulesTests
method: testOptimizerExpressionRuleShouldNotVisitExcludedNodes
issue: https://github.com/elastic/elasticsearch/issues/127754
- class: org.elasticsearch.xpack.remotecluster.RemoteClusterSecurityFcActionAuthorizationIT
method: testIndicesPrivilegesAreEnforcedForCcrRestoreSessionActions
issue: https://github.com/elastic/elasticsearch/issues/127782
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import static org.elasticsearch.xpack.esql.core.type.DataType.BOOLEAN;
import static org.elasticsearch.xpack.esql.core.util.TestUtils.getFieldAttribute;
import static org.elasticsearch.xpack.esql.core.util.TestUtils.of;
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.containsInAnyOrder;

public class OptimizerRulesTests extends ESTestCase {

Expand Down Expand Up @@ -138,6 +138,6 @@ protected Expression rule(Expression e, LogicalOptimizerContext ctx) {
var alias = new Alias(new Source(1, 18, "x=f1+1"), "x", add);

// contains expressions only from EVAL
assertThat(rule.appliedTo, contains(alias, add, attribute, literal));
assertThat(rule.appliedTo, containsInAnyOrder(alias, add, attribute, literal));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This might appear as alias, add, attribute, literal or attribute, literal, add, alias depending on TransformDirection

}
}