Skip to content

Commit 63e84ac

Browse files
committed
Fix sqrt logical plan test
Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>
1 parent 9025c6a commit 63e84ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ppl/src/test/java/org/opensearch/sql/ppl/calcite/CalcitePPLMathFunctionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ public void testSin() {
299299
public void testSqrt() {
300300
RelNode root = getRelNode("source=EMP | eval SQRT = sqrt(4) | fields SQRT");
301301
String expectedLogical =
302-
"LogicalProject(SQRT=[SQRT(4)])\n LogicalTableScan(table=[[scott, EMP]])\n";
302+
"LogicalProject(SQRT=[POWER(4, 0.5E0:DOUBLE)])\n LogicalTableScan(table=[[scott, EMP]])\n";
303303
verifyLogical(root, expectedLogical);
304304
String expectedSparkSql = "SELECT SQRT(4) `SQRT`\nFROM `scott`.`EMP`";
305305
verifyPPLToSparkSQL(root, expectedSparkSql);

0 commit comments

Comments
 (0)