mirror of https://github.com/apache/druid.git
fix cardinality aggregator caching
This commit is contained in:
parent
366ae9e5e4
commit
4eee7e69b9
|
@ -214,9 +214,10 @@ public class CardinalityAggregatorFactory implements AggregatorFactory
|
||||||
{
|
{
|
||||||
byte[] fieldNameBytes = Joiner.on("\u0001").join(fieldNames).getBytes(Charsets.UTF_8);
|
byte[] fieldNameBytes = Joiner.on("\u0001").join(fieldNames).getBytes(Charsets.UTF_8);
|
||||||
|
|
||||||
return ByteBuffer.allocate(1 + fieldNameBytes.length)
|
return ByteBuffer.allocate(2 + fieldNameBytes.length)
|
||||||
.put(CACHE_TYPE_ID)
|
.put(CACHE_TYPE_ID)
|
||||||
.put(fieldNameBytes)
|
.put(fieldNameBytes)
|
||||||
|
.put((byte)(byRow ? 1 : 0))
|
||||||
.array();
|
.array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue