You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "predator4ann (via GitHub)" <gi...@apache.org> on 2025/06/03 09:16:15 UTC

Re: [PR] [#6656] fix(catalog): support read time/datetime/timestamp columns with precision [gravitino]

predator4ann commented on code in PR #6657:
URL: https://github.com/apache/gravitino/pull/6657#discussion_r2123229198


##########
catalogs/catalog-jdbc-common/src/main/java/org/apache/gravitino/catalog/jdbc/operation/JdbcTableOperations.java:
##########
@@ -626,4 +631,16 @@ protected JdbcColumn.Builder getBasicJdbcColumnInfo(ResultSet column) throws SQL
         .withNullable(nullable)
         .withDefaultValue(defaultValue);
   }
+
+  /**
+   * Calculate the precision for time/datetime/timestamp types.
+   *
+   * @param typeName the type name from database
+   * @param columnSize the column size from database
+   * @param scale
+   * @return the precision of the time/datetime/timestamp type
+   */
+  public Integer calculateDatetimePrecision(String typeName, int columnSize, int scale) {
+    return null;

Review Comment:
   It provides a default behavior for catalogs that do not implement this method.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org