cryptoe commented on code in PR #13909:
URL: https://github.com/apache/druid/pull/13909#discussion_r1139828353
##########
server/src/main/java/org/apache/druid/segment/realtime/appenderator/BatchAppenderator.java:
##########
@@ -785,6 +785,9 @@ private DataSegment mergeAndPush(
for (FireHydrant fireHydrant : sink) {
Pair<ReferenceCountingSegment, Closeable> segmentAndCloseable =
fireHydrant.getAndIncrementSegment();
final QueryableIndex queryableIndex =
segmentAndCloseable.lhs.asQueryableIndex();
+ if (queryableIndex != null) {
Review Comment:
Why would the queryable index be empty here.
Would it cause problems in the indexes.add() method ?
##########
server/src/main/java/org/apache/druid/segment/realtime/appenderator/BatchAppenderator.java:
##########
@@ -785,6 +785,9 @@ private DataSegment mergeAndPush(
for (FireHydrant fireHydrant : sink) {
Pair<ReferenceCountingSegment, Closeable> segmentAndCloseable =
fireHydrant.getAndIncrementSegment();
final QueryableIndex queryableIndex =
segmentAndCloseable.lhs.asQueryableIndex();
+ if (queryableIndex != null) {
Review Comment:
Why would the queryable index be null here.
Would it cause problems in the indexes.add() method ?
--
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]