rdblue commented on a change in pull request #3368:
URL: https://github.com/apache/iceberg/pull/3368#discussion_r735743711
##########
File path:
spark/v2.4/spark/src/main/java/org/apache/iceberg/spark/SparkValueConverter.java
##########
@@ -117,4 +132,32 @@ private static Record convert(Types.StructType struct, Row
row) {
}
return record;
}
+
+ @SuppressWarnings("checkstyle:CyclomaticComplexity")
+ public static Object convertAtomicValue(DataType atomic, Object object) {
Review comment:
Is this needed?
I think you could handle short and byte types by updating the `convert(Type,
Object)` method above:
```java
case INTEGER:
return ((Number) object).intValue();
```
Then you wouldn't need a new method at all.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]