vvysotskyi commented on a change in pull request #1829: DRILL-7096: Develop 
vector for canonical Map<K,V>
URL: https://github.com/apache/drill/pull/1829#discussion_r317162013
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/ParquetTableMetadataUtils.java
 ##########
 @@ -379,14 +382,8 @@ public static Object getValue(Object value, 
PrimitiveType.PrimitiveTypeName prim
   }
 
   private static Integer getInt(Object value) {
-    if (value instanceof Integer) {
-      return (Integer) value;
-    } else if (value instanceof Long) {
-      return ((Long) value).intValue();
-    } else if (value instanceof Float) {
-      return ((Float) value).intValue();
-    } else if (value instanceof Double) {
-      return ((Double) value).intValue();
+    if (value instanceof Number) {
 
 Review comment:
   Thanks!

----------------------------------------------------------------
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

Reply via email to