arina-ielchiieva commented on a change in pull request #1860: DRILL-7357:
Expose Drill Metastore data through information_schema
URL: https://github.com/apache/drill/pull/1860#discussion_r330567992
##########
File path: common/src/main/java/org/apache/drill/common/types/Types.java
##########
@@ -93,6 +93,44 @@ public static boolean isNumericType(final MinorType type) {
}
}
+ public static boolean isDateTimeType(MajorType type) {
+ if (type.getMode() == REPEATED) {
+ return false;
+ }
+ return isDateTimeType(type.getMinorType());
+ }
+
+ public static boolean isDateTimeType(MinorType type) {
+ switch (type) {
+ case TIME:
+ case TIMETZ:
+ case DATE:
+ case TIMESTAMP:
+ case TIMESTAMPTZ:
+ return true;
+ default:
+ return false;
+ }
+ }
+
Review comment:
Check.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services