[fix](jdbc catalog) fix mysql zero date (#26569)

This commit is contained in:
zy-kkk
2023-11-08 21:41:56 +08:00
committed by GitHub
parent 1fc360df19
commit 5bcf6bfd46
7 changed files with 96 additions and 107 deletions

View File

@ -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": {