mirror of https://github.com/apache/druid.git
Issue 4909 popped up again. I applied PR 5451 liberally to all new Calcite test classes introduced in PR 9279 to fix (#9324)
This commit is contained in:
parent
3bb9e7e53a
commit
5befd40638
|
@ -36,6 +36,7 @@ import org.apache.druid.sql.calcite.aggregation.SqlAggregator;
|
|||
import org.apache.druid.sql.calcite.expression.SqlOperatorConversion;
|
||||
import org.apache.druid.sql.calcite.schema.DruidSchemaName;
|
||||
import org.apache.druid.sql.calcite.schema.NamedSchema;
|
||||
import org.apache.druid.sql.calcite.util.CalciteTestBase;
|
||||
import org.easymock.EasyMock;
|
||||
import org.easymock.EasyMockRunner;
|
||||
import org.easymock.Mock;
|
||||
|
@ -49,7 +50,7 @@ import javax.validation.Validator;
|
|||
import java.util.Set;
|
||||
|
||||
@RunWith(EasyMockRunner.class)
|
||||
public class CalcitePlannerModuleTest
|
||||
public class CalcitePlannerModuleTest extends CalciteTestBase
|
||||
{
|
||||
private static final String SCHEMA_1 = "SCHEMA_1";
|
||||
private static final String SCHEMA_2 = "SCHEMA_2";
|
||||
|
|
|
@ -42,6 +42,7 @@ import org.apache.druid.server.QueryLifecycleFactory;
|
|||
import org.apache.druid.server.security.AuthorizerMapper;
|
||||
import org.apache.druid.server.security.Escalator;
|
||||
import org.apache.druid.sql.calcite.planner.PlannerConfig;
|
||||
import org.apache.druid.sql.calcite.util.CalciteTestBase;
|
||||
import org.apache.druid.sql.calcite.view.ViewManager;
|
||||
import org.easymock.EasyMock;
|
||||
import org.easymock.EasyMockRunner;
|
||||
|
@ -55,7 +56,7 @@ import java.util.Set;
|
|||
import java.util.stream.Collectors;
|
||||
|
||||
@RunWith(EasyMockRunner.class)
|
||||
public class DruidCalciteSchemaModuleTest
|
||||
public class DruidCalciteSchemaModuleTest extends CalciteTestBase
|
||||
{
|
||||
private static final String DRUID_SCHEMA_NAME = "druid";
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
package org.apache.druid.sql.calcite.schema;
|
||||
|
||||
import org.apache.druid.sql.calcite.util.CalciteTestBase;
|
||||
import org.easymock.EasyMockRunner;
|
||||
import org.easymock.Mock;
|
||||
import org.junit.Assert;
|
||||
|
@ -27,7 +28,7 @@ import org.junit.Test;
|
|||
import org.junit.runner.RunWith;
|
||||
|
||||
@RunWith(EasyMockRunner.class)
|
||||
public class NamedDruidSchemaTest
|
||||
public class NamedDruidSchemaTest extends CalciteTestBase
|
||||
{
|
||||
private static final String SCHEMA_NAME = "SCHEMA_NAME";
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
package org.apache.druid.sql.calcite.schema;
|
||||
|
||||
import org.apache.druid.sql.calcite.util.CalciteTestBase;
|
||||
import org.easymock.EasyMockRunner;
|
||||
import org.easymock.Mock;
|
||||
import org.junit.Assert;
|
||||
|
@ -27,7 +28,7 @@ import org.junit.Test;
|
|||
import org.junit.runner.RunWith;
|
||||
|
||||
@RunWith(EasyMockRunner.class)
|
||||
public class NamedLookupSchemaTest
|
||||
public class NamedLookupSchemaTest extends CalciteTestBase
|
||||
{
|
||||
private static final String SCHEMA_NAME = "lookup";
|
||||
|
||||
|
|
|
@ -19,12 +19,13 @@
|
|||
|
||||
package org.apache.druid.sql.calcite.schema;
|
||||
|
||||
import org.apache.druid.sql.calcite.util.CalciteTestBase;
|
||||
import org.easymock.Mock;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
public class NamedSystemSchemaTest
|
||||
public class NamedSystemSchemaTest extends CalciteTestBase
|
||||
{
|
||||
private static final String SCHEMA_NAME = "sys";
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ import com.google.common.collect.ImmutableSet;
|
|||
import org.apache.calcite.schema.Schema;
|
||||
import org.apache.calcite.schema.SchemaPlus;
|
||||
import org.apache.druid.java.util.common.ISE;
|
||||
import org.apache.druid.sql.calcite.util.CalciteTestBase;
|
||||
import org.easymock.EasyMock;
|
||||
import org.easymock.EasyMockRunner;
|
||||
import org.easymock.Mock;
|
||||
|
@ -34,7 +35,7 @@ import org.junit.runner.RunWith;
|
|||
import java.util.Set;
|
||||
|
||||
@RunWith(EasyMockRunner.class)
|
||||
public class RootSchemaProviderTest
|
||||
public class RootSchemaProviderTest extends CalciteTestBase
|
||||
{
|
||||
private static final String SCHEMA_1 = "SCHEMA_1";
|
||||
private static final String SCHEMA_2 = "SCHEMA_2";
|
||||
|
|
Loading…
Reference in New Issue