manirajv06 commented on code in PR #13195:
URL: https://github.com/apache/iceberg/pull/13195#discussion_r2243250595
##########
core/src/test/java/org/apache/iceberg/expressions/TestInclusiveMetricsEvaluatorWithExtract.java:
##########
@@ -91,7 +165,22 @@ public class TestInclusiveMetricsEvaluatorWithExtract {
"$['event_id']",
Variants.of(INT_MIN_VALUE),
"$['str']",
- Variants.of("abc")))),
+ Variants.of("abc"),
+ "$['event_uuid']",
+ Variants.ofUUID(VAR_UUID),
+ "$['event_timestamp_long']",
+ Variants.of(TS_MIN_VALUE),
+ "$['event_timestamp_ts_type']",
+
Variants.ofIsoTimestamptz(DateTimeUtil.microsToIsoTimestamptz(TS_MIN_VALUE)),
+ "$['event_timestamp_nano_long']",
+ Variants.of(TS_NANO_MIN_VALUE),
+ "$['event_timestamp_nano_ts_type']",
+ Variants.ofIsoTimestamptzNanos(
+
DateTimeUtil.nanosToIsoTimestamptz(TS_NANO_MIN_VALUE)),
+ "$['event_time_long']",
+ Variants.of(TIME_MIN_VALUE),
+ "$['event_time_ts_type']",
+
Variants.ofIsoTime(DateTimeUtil.microsToIsoTime(TIME_MIN_VALUE))))),
Review Comment:
Simplified the whole tests as suggested by you.
##########
core/src/test/java/org/apache/iceberg/expressions/TestInclusiveMetricsEvaluatorWithExtract.java:
##########
@@ -683,4 +787,802 @@ public void testIntegerNotIn() {
.as("Should read: id above upper bound (85 > 79, 86 > 79)")
.isTrue();
}
+
+ private static Stream<Arguments> timestampLtParameters() {
+ return Stream.of(
+ Arguments.of(
+ "$.event_timestamp_nano_long",
+ Types.TimestampNanoType.withZone().toString(),
+ L_TS_NANO_MIN_VALUE_MINUS_10,
+ TS_NANO_MIN_VALUE,
+ TS_NANO_MAX_VALUE,
+ "$.event_timestamp_nano_ts_type",
+ TS_COMMON_MIN_VALUE_MINUS_10.toString(),
+ TS_COMMON_MIN_VALUE.toString(),
+ TS_COMMON_MAX_VALUE.toString()),
+ Arguments.of(
+ "$.event_timestamp_long",
+ Types.TimestampType.withZone().toString(),
+ L_TS_MIN_VALUE_MINUS_10,
+ TS_MIN_VALUE,
+ TS_MAX_VALUE,
+ "$.event_timestamp_ts_type",
+ TS_COMMON_MIN_VALUE_MINUS_10.toString(),
+ TS_COMMON_MIN_VALUE.toString(),
+ TS_COMMON_MAX_VALUE.toString()),
+ Arguments.of(
+ "$.event_time_long",
+ Types.TimeType.get().toString(),
+ L_TIME_MIN_VALUE_MINUS_10,
+ TIME_MIN_VALUE,
+ TIME_MAX_VALUE,
+ "$.event_time_ts_type",
+ T_TIME_MIN_VALUE_MINUS_10,
+ T_TIME_MIN_VALUE,
+ T_TIME_MAX_VALUE));
+ }
+
+ @ParameterizedTest
+ @MethodSource("timestampLtParameters")
+ public void testTimestampLt(
Review Comment:
Simplified the whole tests as suggested by you.
--
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]