github-advanced-security[bot] commented on code in PR #18329:
URL: https://github.com/apache/druid/pull/18329#discussion_r2305764103
##########
server/src/test/java/org/apache/druid/client/CachingClusteredClientTest.java:
##########
@@ -3099,6 +3099,56 @@
Assert.assertNotEquals(etag1, etag2);
}
+ @Test
+ public void testRealtimeSegmentsQueryContext()
+ {
+ final Interval interval = Intervals.of("2016-01-01/2016-01-02");
+ final Interval queryInterval =
Intervals.of("2016-01-01T14:00:00/2016-01-02T14:00:00");
+ final DataSegment dataSegment = new DataSegment(
+ "dataSource",
+ interval,
+ "ver",
+ ImmutableMap.of(
+ "type", "hdfs",
+ "path", "/tmp"
+ ),
+ ImmutableList.of("product"),
+ ImmutableList.of("visited_sum"),
+ NoneShardSpec.instance(),
+ 9,
+ 12334
+ );
Review Comment:
## Deprecated method or constructor invocation
Invoking [DataSegment.DataSegment](1) should be avoided because it has been
deprecated.
[Show more
details](https://github.com/apache/druid/security/code-scanning/10260)
--
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]