Adding a flag for multi value dimension selector

This commit is contained in:
Soumyava Das 2023-07-13 15:18:54 -07:00
parent 6cae4901e3
commit ef87989166
3 changed files with 1 additions and 9 deletions

View File

@ -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) {

View File

@ -288,11 +288,6 @@ public class StringFirstAggregatorFactory extends AggregatorFactory
return getFirstElementFromMvd;
}
public void setGetFirstElementFromMvd(boolean getFirstElementFromMvd)
{
this.getFirstElementFromMvd = getFirstElementFromMvd;
}
@Override
public byte[] getCacheKey()
{

View File

@ -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(