Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/standard-its.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ jobs:
with:
path: ~/.m2/repository
key: maven-${{ runner.os }}-8-${{ github.sha }}
restore-keys: setup-java-Linux-maven-${{ hashFiles('**/pom.xml') }}

- name: Maven build
if: steps.maven-restore.outputs.cache-hit != 'true'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/unit-and-integration-tests-unified.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
with:
path: ~/.m2/repository
key: maven-${{ runner.os }}-${{ matrix.jdk }}-${{ github.sha }}
restore-keys: setup-java-Linux-maven-${{ hashFiles('**/pom.xml') }}

- name: Cache targets
id: target
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import org.apache.druid.client.DruidServer;
import org.apache.druid.client.selector.HighestPriorityTierSelectorStrategy;
import org.apache.druid.client.selector.RandomServerSelectorStrategy;
import org.apache.druid.common.config.NullHandling;
import org.apache.druid.curator.CuratorTestBase;
import org.apache.druid.indexing.materializedview.DerivativeDataSourceMetadata;
import org.apache.druid.jackson.DefaultObjectMapper;
Expand Down Expand Up @@ -72,6 +73,10 @@

public class DatasourceOptimizerTest extends CuratorTestBase
{
static {
NullHandling.initializeForTests();
}

@Rule
public final TestDerbyConnector.DerbyConnectorRule derbyConnectorRule = new TestDerbyConnector.DerbyConnectorRule();
private DerivativeDataSourceManager derivativesManager;
Expand Down Expand Up @@ -142,7 +147,7 @@ public void testOptimize() throws InterruptedException
Set<String> metrics = Sets.newHashSet("cost");
DerivativeDataSourceMetadata metadata = new DerivativeDataSourceMetadata(baseDataSource, dims, metrics);
metadataStorageCoordinator.insertDataSourceMetadata(dataSource, metadata);
// insert base datasource segments
// insert base datasource segments
List<Boolean> baseResult = Lists.transform(
ImmutableList.of(
"2011-04-01/2011-04-02",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.base.Function;
import com.google.common.collect.ImmutableMap;
import org.apache.druid.common.config.NullHandling;
import org.apache.druid.data.input.MapBasedRow;
import org.apache.druid.jackson.DefaultObjectMapper;
import org.apache.druid.java.util.common.DateTimes;
Expand Down Expand Up @@ -55,6 +56,10 @@

public class MaterializedViewQueryQueryToolChestTest
{
static {
NullHandling.initializeForTests();
}

private static final ObjectMapper JSON_MAPPER = new DefaultObjectMapper();

@Test
Expand Down Expand Up @@ -244,7 +249,5 @@ public void testGetRealQuery()
));

Assert.assertEquals(realQuery, materializedViewQueryQueryToolChest.getRealQuery(materializedViewQuery));

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import org.apache.druid.common.config.NullHandling;
import org.apache.druid.java.util.common.HumanReadableBytes;
import org.apache.druid.math.expr.ExprMacroTable;
import org.apache.druid.query.Query;
Expand All @@ -45,6 +46,10 @@

public class MaterializedViewQueryTest
{
static {
NullHandling.initializeForTests();
}

private static final ObjectMapper JSON_MAPPER = TestHelper.makeJsonMapper();
private DataSourceOptimizer optimizer;

Expand Down
3 changes: 2 additions & 1 deletion integration-tests/script/copy_resources_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ cp -R docker $SHARED_DIR/docker

pushd ../
rm -rf distribution/target/apache-druid-$DRUID_VERSION-integration-test-bin
mvn -Pskip-static-checks,skip-tests -T1C -Danimal.sniffer.skip=true -Dcheckstyle.skip=true -Dweb.console.skip=true -Dcyclonedx.skip=true -Denforcer.skip=true -Dforbiddenapis.skip=true -Dmaven.javadoc.skip=true -Dpmd.skip=true -Dspotbugs.skip=true install -Pintegration-test
# using parallel build here may not yield significant speedups
mvn -B -Pskip-static-checks,skip-tests -Dweb.console.skip=true install -Pintegration-test
mv distribution/target/apache-druid-$DRUID_VERSION-integration-test-bin/bin $SHARED_DIR/docker/bin
mv distribution/target/apache-druid-$DRUID_VERSION-integration-test-bin/lib $SHARED_DIR/docker/lib
mv distribution/target/apache-druid-$DRUID_VERSION-integration-test-bin/extensions $SHARED_DIR/docker/extensions
Expand Down
12 changes: 6 additions & 6 deletions it.sh
Original file line number Diff line number Diff line change
Expand Up @@ -232,17 +232,17 @@ case $CMD in
mvn -q clean install dependency:go-offline -P dist $MAVEN_IGNORE
;;
"build" )
mvn clean install -P dist $MAVEN_IGNORE -T1.0C $*
mvn -B clean install -P dist $MAVEN_IGNORE -T1.0C $*
;;
"dist" )
mvn install -P dist $MAVEN_IGNORE -pl :distribution
mvn -B install -P dist $MAVEN_IGNORE -pl :distribution
;;
"tools" )
mvn install -pl :druid-it-tools
mvn -B install -pl :druid-it-tools
;;
"image" )
cd $DRUID_DEV/integration-tests-ex/image
mvn install -P test-image $MAVEN_IGNORE
mvn -B install -P test-image $MAVEN_IGNORE
;;
"gen")
# Generate the docker-compose.yaml files. Mostly for debugging
Expand All @@ -264,7 +264,7 @@ case $CMD in
"run" )
require_category
reuse_override
mvn $TEST_OPTIONS -P IT-$CATEGORY -pl $MAVEN_PROJECT
mvn -B $TEST_OPTIONS -P IT-$CATEGORY -pl $MAVEN_PROJECT
;;
"test" )
require_category
Expand All @@ -275,7 +275,7 @@ case $CMD in
# Run the test. On failure, still shut down the cluster.
# Return Maven's return code as the script's return code.
set +e
mvn $TEST_OPTIONS -P IT-$CATEGORY -pl $MAVEN_PROJECT
mvn -B $TEST_OPTIONS -P IT-$CATEGORY -pl $MAVEN_PROJECT
RESULT=$?
set -e
$IT_CASES_DIR/cluster.sh down $CATEGORY
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2106,6 +2106,7 @@
<maven.javadoc.skip>true</maven.javadoc.skip>
<pmd.skip>true</pmd.skip>
<spotbugs.skip>true</spotbugs.skip>
<maven.gitcommitid.skip>true</maven.gitcommitid.skip>
</properties>
</profile>
<profile>
Expand Down