Skip to content

Commit bec6d37

Browse files
committed
fix: update it case
Signed-off-by: zacsun <zacsun@lilith.com>
1 parent c24cd3a commit bec6d37

File tree

1 file changed

+2
-3
lines changed
  • catalogs/catalog-jdbc-mysql/src/test/java/org/apache/gravitino/catalog/mysql/integration/test

1 file changed

+2
-3
lines changed

catalogs/catalog-jdbc-mysql/src/test/java/org/apache/gravitino/catalog/mysql/integration/test/CatalogMysqlIT.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,7 @@ void testColumnDefaultValueConverter() {
620620
Literals.timestampLiteral("1983-09-05T00:00:00"), column.defaultValue());
621621
break;
622622
case "timestamp_col_3":
623-
Assertions.assertEquals(
624-
UnparsedExpression.of("CURRENT_TIMESTAMP(6)"), column.defaultValue());
623+
Assertions.assertEquals(DEFAULT_VALUE_OF_CURRENT_TIMESTAMP, column.defaultValue());
625624
break;
626625
case "decimal_6_2_col_1":
627626
Assertions.assertEquals(
@@ -863,7 +862,7 @@ void testUpdateColumnDefaultValue() {
863862
TableChange.updateColumnDefaultValue(
864863
new String[] {columns[0].name()}, Literals.of("1.2345", Types.FloatType.get())),
865864
TableChange.updateColumnDefaultValue(
866-
new String[] {columns[1].name()}, FunctionExpression.of("current_timestamp")),
865+
new String[] {columns[1].name()}, DEFAULT_VALUE_OF_CURRENT_TIMESTAMP),
867866
TableChange.updateColumnDefaultValue(
868867
new String[] {columns[2].name()}, Literals.of("hello", Types.VarCharType.of(255))),
869868
TableChange.updateColumnDefaultValue(

0 commit comments

Comments
 (0)