Skip to content

Commit 51f2608

Browse files
committed
Fix IT
Signed-off-by: Lantao Jin <ltjin@amazon.com>
1 parent 56cc73b commit 51f2608

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

integ-test/src/test/java/org/opensearch/sql/calcite/remote/CalcitePPLExplainIT.java renamed to integ-test/src/test/java/org/opensearch/sql/calcite/remote/CalcitePPLExplainCommandIT.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
import org.opensearch.client.Request;
1313
import org.opensearch.sql.ppl.PPLIntegTestCase;
1414

15-
public class CalcitePPLExplainIT extends PPLIntegTestCase {
15+
/**
16+
* This IT is just for explain command only. If you want to test the explain result of PPL query,
17+
* use {@link org.opensearch.sql.ppl.ExplainIT}.
18+
*/
19+
public class CalcitePPLExplainCommandIT extends PPLIntegTestCase {
1620

1721
@Override
1822
public void init() throws Exception {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"calcite": {
3+
"logical": "LogicalSort(sort0=[$1], dir0=[ASC])\n LogicalProject(a=[$17], b=[SYSDATE(6, 1)])\n LogicalSort(sort0=[$8], dir0=[ASC-nulls-first])\n LogicalProject(account_number=[$0], firstname=[$1], address=[$2], balance=[$3], gender=[$4], city=[$5], employer=[$6], state=[$7], age=[$8], email=[$9], lastname=[$10], _id=[$11], _index=[$12], _score=[$13], _maxscore=[$14], _sort=[$15], _routing=[$16], a=[SYSDATE(6, 0)])\n CalciteLogicalIndexScan(table=[[OpenSearch, opensearch-sql_test_index_account]])\n",
4+
"physical": "EnumerableCalc(expr#0..1=[{inputs}], expr#2=[6], expr#3=[1], expr#4=[SYSDATE($t2, $t3)], a=[$t1], b=[$t4])\n EnumerableSort(sort0=[$0], dir0=[ASC-nulls-first])\n EnumerableCalc(expr#0..16=[{inputs}], expr#17=[6], expr#18=[0], expr#19=[SYSDATE($t17, $t18)], age=[$t8], a=[$t19])\n CalciteEnumerableIndexScan(table=[[OpenSearch, opensearch-sql_test_index_account]])\n"
5+
}
6+
}

0 commit comments

Comments
 (0)