mirror of https://github.com/apache/druid.git
Initialize NullValueHandlingConfig for failed tests (#13078)
* Initialize null handling * Refactor nullhandlingconfig init
This commit is contained in:
parent
1311e85f65
commit
c153c2a712
|
@ -20,6 +20,7 @@
|
|||
package org.apache.druid.msq.statistics;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import org.apache.druid.common.config.NullHandling;
|
||||
import org.apache.druid.frame.key.ClusterBy;
|
||||
import org.apache.druid.frame.key.KeyTestUtils;
|
||||
import org.apache.druid.frame.key.RowKey;
|
||||
|
@ -41,6 +42,10 @@ public class DelegateOrMinKeyCollectorTest
|
|||
private final RowSignature signature = RowSignature.builder().add("x", ColumnType.LONG).build();
|
||||
private final Comparator<RowKey> comparator = clusterBy.keyComparator();
|
||||
|
||||
static {
|
||||
NullHandling.initializeForTests();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEmpty()
|
||||
{
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
package org.apache.druid.msq.statistics;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import org.apache.druid.common.config.NullHandling;
|
||||
import org.apache.druid.frame.key.ClusterBy;
|
||||
import org.apache.druid.frame.key.ClusterByPartition;
|
||||
import org.apache.druid.frame.key.ClusterByPartitions;
|
||||
|
@ -41,6 +42,10 @@ public class QuantilesSketchKeyCollectorTest
|
|||
private final Comparator<RowKey> comparator = clusterBy.keyComparator();
|
||||
private final int numKeys = 500_000;
|
||||
|
||||
static {
|
||||
NullHandling.initializeForTests();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_empty()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue