You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by "dengzhhu653 (via GitHub)" <gi...@apache.org> on 2024/03/01 02:11:10 UTC
Re: [PR] HIVE-27775: DirectSQL and JDO results are different when fetching par… [hive]
dengzhhu653 commented on code in PR #4959:
URL: https://github.com/apache/hive/pull/4959#discussion_r1508402775
##########
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/MetaStoreUtils.java:
##########
@@ -107,6 +107,17 @@ public static Date convertStringToDate(String date) {
return java.sql.Date.valueOf(val);
}
+ /**
+ * Converts the string format date without a time-zone to
+ * a time-zone based string format date
+ * @param date the date without a time-zone
+ * @return time-zone based string format date
+ */
+ public static String normalizeDate(String date) {
+ Date val = MetaStoreUtils.convertStringToDate(date);
Review Comment:
done
--
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: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org