zhjwpku commented on code in PR #1157:
URL: https://github.com/apache/iceberg-cpp/pull/1157#discussion_r4697742942


##########
src/iceberg/expression/inclusive_metrics_evaluator.cc:
##########
@@ -486,7 +487,7 @@ class InclusiveMetricsVisitor : public BoundVisitor<bool> {
     }
     auto primitive_type = internal::checked_pointer_cast<PrimitiveType>(type);
     if (data_file_.upper_bounds.contains(id)) {
-      return Literal::Deserialize(data_file_.upper_bounds.at(id), 
primitive_type);
+      return internal::DeserializeBound(data_file_.upper_bounds.at(id), 
primitive_type);

Review Comment:
   Good catch, I reproduced the same issue with ordinary 8-byte timestamp 
bounds. The upper bound wraps to a negative hour, so hour(ts) >= 0 can skip a 
file containing the epoch. I opened 
[#1176](https://github.com/apache/iceberg-cpp/pull/1176) to fix this for both 
timestamp and timestamptz.



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

Reply via email to