diff --git a/sql-jdbc/src/main/java/org/opensearch/jdbc/types/OpenSearchType.java b/sql-jdbc/src/main/java/org/opensearch/jdbc/types/OpenSearchType.java index dd2c19326d..e7329a770f 100644 --- a/sql-jdbc/src/main/java/org/opensearch/jdbc/types/OpenSearchType.java +++ b/sql-jdbc/src/main/java/org/opensearch/jdbc/types/OpenSearchType.java @@ -62,10 +62,10 @@ public enum OpenSearchType { IP(JDBCType.VARCHAR, String.class, 15, 0, false), NESTED(JDBCType.STRUCT, null, 0, 0, false), OBJECT(JDBCType.STRUCT, null, 0, 0, false), - DATE(JDBCType.DATE, Date.class, 24, 24, false), - TIME(JDBCType.TIME, Time.class, 24, 24, false), - DATETIME(JDBCType.TIMESTAMP, Timestamp.class, 24, 24, false), - TIMESTAMP(JDBCType.TIMESTAMP, Timestamp.class, 24, 24, false), + DATE(JDBCType.DATE, Date.class, 10, 10, false), + TIME(JDBCType.TIME, Time.class, 8, 8, false), + DATETIME(JDBCType.TIMESTAMP, Timestamp.class, 29, 29, false), + TIMESTAMP(JDBCType.TIMESTAMP, Timestamp.class, 29, 29, false), BINARY(JDBCType.VARBINARY, String.class, Integer.MAX_VALUE, 0, false), NULL(JDBCType.NULL, null, 0, 0, false), UNDEFINED(JDBCType.NULL, null, 0, 0, false),