mirror of https://github.com/apache/druid.git
fix NPE while indexing
This commit is contained in:
parent
c6712739dc
commit
f36d030ef2
|
@ -286,11 +286,6 @@ public class IncrementalIndex implements Iterable<Row>, Closeable
|
||||||
|
|
||||||
this.dimensionOrder = Maps.newLinkedHashMap();
|
this.dimensionOrder = Maps.newLinkedHashMap();
|
||||||
this.dimensions = new CopyOnWriteArrayList<>();
|
this.dimensions = new CopyOnWriteArrayList<>();
|
||||||
int index = 0;
|
|
||||||
for (String dim : incrementalIndexSchema.getDimensionsSpec().getDimensions()) {
|
|
||||||
dimensionOrder.put(dim, index++);
|
|
||||||
dimensions.add(dim);
|
|
||||||
}
|
|
||||||
// This should really be more generic
|
// This should really be more generic
|
||||||
List<SpatialDimensionSchema> spatialDimensions = incrementalIndexSchema.getDimensionsSpec().getSpatialDimensions();
|
List<SpatialDimensionSchema> spatialDimensions = incrementalIndexSchema.getDimensionsSpec().getSpatialDimensions();
|
||||||
if (!spatialDimensions.isEmpty()) {
|
if (!spatialDimensions.isEmpty()) {
|
||||||
|
|
Loading…
Reference in New Issue