File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
api/src/test/java/org/opensearch/sql/api/transpiler Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -43,11 +43,9 @@ public void testToSqlWithCustomDialect() {
4343 UnifiedQueryTranspiler customTranspiler =
4444 UnifiedQueryTranspiler .builder ().dialect (OpenSearchSparkSqlDialect .DEFAULT ).build ();
4545 String actualSql = customTranspiler .toSql (plan );
46- String expectedSql =
47- normalize (
48- "SELECT *\n FROM `catalog`.`employees`\n WHERE TRY_CAST(`name` AS DOUBLE) = 1.230E2" );
46+ String expectedSql = normalize ("SELECT *\n FROM `catalog`.`employees`\n WHERE `name` = 123" );
4947 assertEquals (
50- "Transpiled query using OpenSearchSparkSqlDialect should translate SAFE_CAST to TRY_CAST " ,
48+ "Numeric types can be implicitly coerced to string with OpenSearchSparkSqlDialect " ,
5149 expectedSql ,
5250 actualSql );
5351 }
You can’t perform that action at this time.
0 commit comments