mirror of https://github.com/apache/druid.git
Fix SegmentMetadataQuery when queryGranularity is requested but not present. (#3181)
This commit is contained in:
parent
2696b0c451
commit
a437fb150b
|
@ -132,7 +132,7 @@ public class SegmentMetadataQueryRunnerFactory implements QueryRunnerFactory<Seg
|
|||
if (metadata == null) {
|
||||
metadata = segment.asStorageAdapter().getMetadata();
|
||||
}
|
||||
queryGranularity = metadata.getQueryGranularity();
|
||||
queryGranularity = metadata != null ? metadata.getQueryGranularity() : null;
|
||||
} else {
|
||||
queryGranularity = null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue