vvysotskyi commented on a change in pull request #2006: DRILL-7615: UNION ALL query returns the wrong result for the decimal value URL: https://github.com/apache/drill/pull/2006#discussion_r386907067
########## File path: common/src/main/java/org/apache/drill/common/types/Types.java ########## @@ -131,6 +132,17 @@ public static boolean isIntervalType(MinorType type) { } } + /** + * Returns true if all specified types are decimal data types. + * + * @param types types to check + * @return true if all specified types are decimal data type. + */ + public static boolean areDecimalTypes(MajorType... types) { Review comment: This method is used in 3 places, so I think it better to introduce it rather than copy and paste the same code. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services