Skip to content

Commit

Permalink
[Fix](planner) fix bug of char(255) toSql (apache#37340)
Browse files Browse the repository at this point in the history
  • Loading branch information
feiniaofeiafei committed Jul 11, 2024
1 parent d1765b5 commit 0dcc278
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,7 @@ public void testCreateGlobalFunction() throws Exception {
testFunctionQuery(ctx, queryStr, true);

queryStr = "select to_char(k1, 4) from db2.tbl1;";

Assert.assertTrue(containsIgnoreCase(dorisAssert.query(queryStr).explainQuery(),
"CAST(`k1` AS CHARACTER(255))"));
Assert.assertTrue(dorisAssert.query(queryStr).explainQuery().contains("CAST(`k1` AS CHARACTER(255))"));
}

private void testFunctionQuery(ConnectContext ctx, String queryStr, Boolean isStringLiteral) throws Exception {
Expand Down

0 comments on commit 0dcc278

Please sign in to comment.