[fix](jdbc catalog) fix mysql zero date (#26569)
This commit is contained in:
@ -265,6 +265,9 @@ public class JdbcMySQLClient extends JdbcClient {
|
||||
case "BIGINT":
|
||||
return Type.BIGINT;
|
||||
case "DATE":
|
||||
if (convertDateToNull) {
|
||||
fieldSchema.setAllowNull(true);
|
||||
}
|
||||
return ScalarType.createDateV2Type();
|
||||
case "TIMESTAMP":
|
||||
case "DATETIME": {
|
||||
|
||||
Reference in New Issue
Block a user