rdblue commented on code in PR #7553:
URL: https://github.com/apache/iceberg/pull/7553#discussion_r1198351937
##########
spark/v3.4/spark/src/main/java/org/apache/iceberg/spark/PruneColumnsWithoutReordering.java:
##########
@@ -195,10 +195,7 @@ public Type map(Types.MapType map, Supplier<Type>
keyResult, Supplier<Type> valu
public Type primitive(Type.PrimitiveType primitive) {
Class<? extends DataType> expectedType = TYPES.get(primitive.typeId());
Preconditions.checkArgument(
- expectedType != null && expectedType.isInstance(current),
- "Cannot project %s to incompatible type: %s",
- primitive,
- current);
+ expectedType != null, "Cannot project %s to incompatible type: %s",
primitive, current);
Review Comment:
What is this change for? Is it that we may get `LocalDateTime` now?
--
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]