Update UnresolvedRelationTests
UnresolvedRelation does not care about its source during equality hence ignore it when doing randomized mutations. Relates #59014 (cherry picked from commit b21222e714fbf85aad0916e4d4b6a933d2b6958a)
This commit is contained in:
parent
fe775a315f
commit
b2e9c6f640
|
@ -9,7 +9,6 @@ import org.elasticsearch.test.ESTestCase;
|
|||
import org.elasticsearch.xpack.ql.plan.TableIdentifier;
|
||||
import org.elasticsearch.xpack.ql.plan.logical.UnresolvedRelation;
|
||||
import org.elasticsearch.xpack.ql.tree.Source;
|
||||
import org.elasticsearch.xpack.ql.tree.SourceTests;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
@ -26,12 +25,6 @@ public class UnresolvedRelationTests extends ESTestCase {
|
|||
String unresolvedMessage = randomAlphaOfLength(5);
|
||||
UnresolvedRelation relation = new UnresolvedRelation(source, table, alias, randomBoolean(), unresolvedMessage);
|
||||
List<Function<UnresolvedRelation, UnresolvedRelation>> mutators = new ArrayList<>();
|
||||
mutators.add(r -> new UnresolvedRelation(
|
||||
SourceTests.mutate(r.source()),
|
||||
r.table(),
|
||||
r.alias(),
|
||||
r.frozen(),
|
||||
r.unresolvedMessage()));
|
||||
mutators.add(r -> new UnresolvedRelation(
|
||||
r.source(),
|
||||
new TableIdentifier(r.source(), r.table().cluster(), r.table().index() + "m"),
|
||||
|
|
Loading…
Reference in New Issue