Skip to content

Commit c143f99

Browse files
committed
Mask host position in the plan of testInternalItemAccessOnStructs
Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>
1 parent 12898eb commit c143f99

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

integ-test/src/test/java/org/opensearch/sql/calcite/remote/CalciteExplainIT.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,11 +1472,12 @@ public void testGeoIpPushedInAgg() throws IOException {
14721472
public void testInternalItemAccessOnStructs() throws IOException {
14731473
String expected = loadExpectedPlan("access_struct_subfield_with_item.yaml");
14741474
assertYamlEqualsIgnoreId(
1475-
expected,
1475+
// The position of host in the scanned table is different in backport (no pushdown). Therefore, we mask all positions with $*
1476+
expected.replaceAll("\\$t?\\d+", "\\$*"),
14761477
explainQueryYaml(
14771478
String.format(
14781479
"source=%s | eval info = geoip('dummy-datasource', host) | fields host, info,"
14791480
+ " info.dummy_sub_field",
1480-
TEST_INDEX_WEBLOGS)));
1481+
TEST_INDEX_WEBLOGS)).replaceAll("\\$t?\\d+", "\\$*"));
14811482
}
14821483
}

0 commit comments

Comments
 (0)