mirror of https://github.com/apache/druid.git
Adding a flag for multi value dimension selector
This commit is contained in:
parent
6cae4901e3
commit
ef87989166
|
@ -67,10 +67,6 @@ public class SingleStringFirstDimensionVectorAggregator implements VectorAggrega
|
|||
final int[] valueVector = valueDimensionVectorSelector.getRowVector();
|
||||
firstTime = buf.getLong(position);
|
||||
int index = startRow;
|
||||
for (int i = startRow; i < endRow; i++) {
|
||||
index = i;
|
||||
break;
|
||||
}
|
||||
|
||||
final long earliestTime = timeVector[index];
|
||||
if (earliestTime < firstTime) {
|
||||
|
|
|
@ -288,11 +288,6 @@ public class StringFirstAggregatorFactory extends AggregatorFactory
|
|||
return getFirstElementFromMvd;
|
||||
}
|
||||
|
||||
public void setGetFirstElementFromMvd(boolean getFirstElementFromMvd)
|
||||
{
|
||||
this.getFirstElementFromMvd = getFirstElementFromMvd;
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] getCacheKey()
|
||||
{
|
||||
|
|
|
@ -1270,6 +1270,7 @@ public class CalciteQueryTest extends BaseCalciteQueryTest
|
|||
@Test
|
||||
public void testStringEarliestSingleStringDim()
|
||||
{
|
||||
notMsqCompatible();
|
||||
testQuery(
|
||||
"SELECT dim2, EARLIEST(dim1,10) AS val FROM foo GROUP BY dim2",
|
||||
ImmutableList.of(
|
||||
|
|
Loading…
Reference in New Issue