Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
package org.apache.pinot.integration.tests;

import com.fasterxml.jackson.databind.JsonNode;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
Expand All @@ -32,6 +33,7 @@
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.function.Function;
import javax.annotation.Nullable;
import org.apache.commons.io.FileUtils;
import org.apache.pinot.client.ConnectionFactory;
Expand Down Expand Up @@ -789,4 +791,21 @@ protected void testQueryWithMatchingRowCount(String pinotQuery, String h2Query)
ClusterIntegrationTestUtils.testQueryWithMatchingRowCount(pinotQuery, getBrokerBaseApiUrl(), getPinotConnection(),
h2Query, getH2Connection(), null, getExtraQueryProperties(), useMultiStageQueryEngine());
}

protected String getType(JsonNode jsonNode, int colIndex) {
return jsonNode.get("resultTable")
.get("dataSchema")
.get("columnDataTypes")
.get(colIndex)
.asText();
}

protected <T> T getCellValue(JsonNode jsonNode, int colIndex, int rowIndex, Function<JsonNode, T> extract) {
JsonNode cellResult = jsonNode.get("resultTable").get("rows").get(rowIndex).get(colIndex);
return extract.apply(cellResult);
}

protected long getLongCellValue(JsonNode jsonNode, int colIndex, int rowIndex) {
return getCellValue(jsonNode, colIndex, rowIndex, JsonNode::asLong).longValue();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -194,29 +194,28 @@ private void testCountStarQuery(int expectedNumServersQueried, boolean exception

// Disabled because with multiple replicas, there is no guarantee that all replicas are reloaded
@Test(enabled = false)
@Override
public void testStarTreeTriggering() {
public void testStarTreeTriggering(boolean useMultiStageQueryEngine) {
// Ignored
}

// Disabled because with multiple replicas, there is no guarantee that all replicas are reloaded
@Test(enabled = false)
@Override
public void testDefaultColumns() {
public void testDefaultColumns(boolean useMultiStageQueryEngineg) {
// Ignored
}

// Disabled because with multiple replicas, there is no guarantee that all replicas are reloaded
@Test(enabled = false)
@Override
public void testBloomFilterTriggering() {
// Ignored
}

// Disabled because with multiple replicas, there is no guarantee that all replicas are reloaded
@Test(enabled = false)
@Override
public void testRangeIndexTriggering() {
public void testRangeIndexTriggering(boolean useMultiStageQueryEngine)
throws Exception {
// Ignored
}

Expand Down
Loading