mirror of https://github.com/apache/druid.git
fix stupidness with spatial indexing
This commit is contained in:
parent
c58a316437
commit
66225d698f
|
@ -566,10 +566,6 @@ public class IncrementalIndexStorageAdapter implements StorageAdapter
|
||||||
@Override
|
@Override
|
||||||
public ValueMatcher makeValueMatcher(final String dimension, final Bound bound)
|
public ValueMatcher makeValueMatcher(final String dimension, final Bound bound)
|
||||||
{
|
{
|
||||||
if (!dimension.endsWith(".geo")) {
|
|
||||||
return new BooleanValueMatcher(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
Integer dimIndexObject = index.getDimensionIndex(dimension.toLowerCase());
|
Integer dimIndexObject = index.getDimensionIndex(dimension.toLowerCase());
|
||||||
if (dimIndexObject == null) {
|
if (dimIndexObject == null) {
|
||||||
return new BooleanValueMatcher(false);
|
return new BooleanValueMatcher(false);
|
||||||
|
|
|
@ -786,7 +786,7 @@ public class RealtimePlumber implements Plumber
|
||||||
public boolean apply(final DataSegment segment)
|
public boolean apply(final DataSegment segment)
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
schema.getDataSource().equals(segment.getDataSource())
|
schema.getDataSource().equalsIgnoreCase(segment.getDataSource())
|
||||||
&& config.getShardSpec().getPartitionNum() == segment.getShardSpec().getPartitionNum()
|
&& config.getShardSpec().getPartitionNum() == segment.getShardSpec().getPartitionNum()
|
||||||
&& Iterables.any(
|
&& Iterables.any(
|
||||||
sinks.keySet(), new Predicate<Long>()
|
sinks.keySet(), new Predicate<Long>()
|
||||||
|
|
Loading…
Reference in New Issue