Skip to content

Commit d871a81

Browse files
committed
fix test case
1 parent dfc0e14 commit d871a81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fe/fe-common/src/main/java/org/apache/doris/catalog/ScalarType.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ public String toSql(int depth) {
616616
StringBuilder stringBuilder = new StringBuilder();
617617
switch (type) {
618618
case CHAR:
619-
if (isWildcardVarchar()) {
619+
if (isWildcardChar()) {
620620
stringBuilder.append("CHARACTER");
621621
} else if (Strings.isNullOrEmpty(lenStr)) {
622622
stringBuilder.append("CHAR").append("(").append(len).append(")");

regression-test/data/ddl_p0/test_create_view.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
3 [-1, 20, 0] [0, 1, 0]
2626

2727
-- !test_view_6 --
28-
v1 CREATE VIEW `v1` COMMENT 'VIEW' AS SELECT `error_code` AS `error_code`, 1 AS `__literal_1`, 'string' AS `__literal_2`, now() AS `__now_3`, dayofyear(`op_time`) AS `__dayofyear_4`, CAST(`source` AS BIGINT) AS `__cast_expr_5`, min(`timestamp`) OVER (ORDER BY `op_time` DESC NULLS LAST ROWS BETWEEN UNBOUNDED PRECEDING AND 1 FOLLOWING) AS `__min_6`, 1 > 2 AS `__binary_predicate_7`, (2 + 3) AS `__arithmetic_expr_8`, 1 IN (1, 2, 3, 4) AS `__in_predicate_9`, `remark` LIKE '%like' AS `__like_predicate_10`, CASE WHEN `remark` = 's' THEN 1 ELSE 2 END AS `__case_expr_11`, (CAST(TRUE AS BIGINT) | CAST(FALSE AS BIGINT)) AS `__arithmetic_expr_12` FROM `regression_test_ddl_p0`.`view_column_name_test`;
28+
v1 CREATE VIEW `v1` COMMENT 'VIEW' AS SELECT `error_code` AS `error_code`, 1 AS `__literal_1`, 'string' AS `__literal_2`, now() AS `__now_3`, dayofyear(`op_time`) AS `__dayofyear_4`, CAST(`source` AS BIGINT) AS `__cast_expr_5`, min(`timestamp`) OVER (ORDER BY `op_time` DESC NULLS LAST ROWS BETWEEN UNBOUNDED PRECEDING AND 1 FOLLOWING) AS `__min_6`, 1 > 2 AS `__binary_predicate_7`, (2 + 3) AS `__arithmetic_expr_8`, 1 IN (1, 2, 3, 4) AS `__in_predicate_9`, `remark` LIKE '%like' AS `__like_predicate_10`, CASE WHEN `remark` = 's' THEN 1 ELSE 2 END AS `__case_expr_11`, (TRUE | FALSE) AS `__arithmetic_expr_12` FROM `default_cluster:regression_test_ddl_p0`.`view_column_name_test`;
2929

0 commit comments

Comments
 (0)