We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c385f9 commit 3f5398aCopy full SHA for 3f5398a
1 file changed
api/src/test/java/org/opensearch/sql/api/transpiler/UnifiedQueryTranspilerTest.java
@@ -43,11 +43,9 @@ public void testToSqlWithCustomDialect() {
43
UnifiedQueryTranspiler customTranspiler =
44
UnifiedQueryTranspiler.builder().dialect(OpenSearchSparkSqlDialect.DEFAULT).build();
45
String actualSql = customTranspiler.toSql(plan);
46
- String expectedSql =
47
- normalize(
48
- "SELECT *\nFROM `catalog`.`employees`\nWHERE TRY_CAST(`name` AS DOUBLE) = 1.230E2");
+ String expectedSql = normalize("SELECT *\nFROM `catalog`.`employees`\nWHERE `name` = 123");
49
assertEquals(
50
- "Transpiled query using OpenSearchSparkSqlDialect should translate SAFE_CAST to TRY_CAST",
+ "Numeric types can be implicitly coerced to string with OpenSearchSparkSqlDialect",
51
expectedSql,
52
actualSql);
53
}
0 commit comments