Skip to content
Open
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
2 changes: 1 addition & 1 deletion paimon-presto-0.287/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ under the License.
<parent>
<groupId>org.apache.paimon</groupId>
<artifactId>paimon-presto</artifactId>
<version>0.8-SNAPSHOT</version>
<version>0.8.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
14 changes: 7 additions & 7 deletions paimon-presto-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ under the License.
<parent>
<artifactId>paimon-presto</artifactId>
<groupId>org.apache.paimon</groupId>
<version>0.8-SNAPSHOT</version>
<version>0.8.2</version>
</parent>

<packaging>jar</packaging>
Expand Down Expand Up @@ -61,6 +61,12 @@ under the License.
<groupId>com.facebook.presto</groupId>
<artifactId>presto-hive</artifactId>
<version>${presto.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.hudi</groupId>
<artifactId>hudi-presto-bundle</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
Expand Down Expand Up @@ -153,12 +159,6 @@ under the License.
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.facebook.presto</groupId>
<artifactId>presto-main</artifactId>
<version>0.273</version>
<scope>test</scope>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,6 @@ public void testDistinctLimitInternal(Session session) {
throw new SkipException("TODO: test not implemented yet");
}

@Override
public void testDistinctLimitWithHashBasedDistinctLimitEnabled() {
throw new SkipException("TODO: test not implemented yet");
}

@Override
public void testDistinctLimitWithQuickDistinctLimitEnabled() {
throw new SkipException("TODO: test not implemented yet");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static DistributedQueryRunner createPrestoQueryRunner(
queryRunner.installPlugin(new TpchPlugin());
queryRunner.createCatalog("tpch", "tpch");

Path dataDir = queryRunner.getCoordinator().getBaseDataDir().resolve("paimon_data");
Path dataDir = queryRunner.getCoordinator().getDataDirectory().resolve("paimon_data");
Path catalogDir = dataDir.getParent().resolve("catalog");

queryRunner.installPlugin(new PrestoPlugin());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.facebook.presto.spi.ConnectorId;
import com.facebook.presto.spi.ConnectorSession;
import com.facebook.presto.spi.TableHandle;
import com.facebook.presto.spi.VariableAllocator;
import com.facebook.presto.spi.function.StandardFunctionResolution;
import com.facebook.presto.spi.plan.FilterNode;
import com.facebook.presto.spi.plan.PlanNode;
Expand All @@ -42,7 +43,6 @@
import com.facebook.presto.spi.relation.VariableReferenceExpression;
import com.facebook.presto.sql.TestingRowExpressionTranslator;
import com.facebook.presto.sql.gen.RowExpressionPredicateCompiler;
import com.facebook.presto.sql.planner.PlanVariableAllocator;
import com.facebook.presto.sql.planner.TypeProvider;
import com.facebook.presto.sql.planner.planPrinter.RowExpressionFormatter;
import com.facebook.presto.sql.relational.FunctionResolution;
Expand Down Expand Up @@ -71,7 +71,9 @@ public class TestPrestoComputePushdown {
public static final MetadataManager METADATA = MetadataManager.createTestMetadataManager();

public static final StandardFunctionResolution FUNCTION_RESOLUTION =
new FunctionResolution(FunctionAndTypeManager.createTestFunctionAndTypeManager());
new FunctionResolution(
FunctionAndTypeManager.createTestFunctionAndTypeManager()
.getFunctionAndTypeResolver());

public static final RowExpressionService ROW_EXPRESSION_SERVICE =
new RowExpressionService() {
Expand Down Expand Up @@ -104,7 +106,7 @@ public String formatRowExpression(
};

private TableScanNode createTableScan() {
PlanVariableAllocator variableAllocator = new PlanVariableAllocator();
VariableAllocator variableAllocator = new VariableAllocator();
VariableReferenceExpression variableA = variableAllocator.newVariable("a", BIGINT);

Map<VariableReferenceExpression, ColumnHandle> assignments =
Expand Down Expand Up @@ -183,7 +185,7 @@ public void testOptimizeFilter() {
ConnectorSession session =
new TestingConnectorSession(
prestoSessionProperties.getSessionProperties(), prestoSessionConfig);
PlanVariableAllocator variableAllocator = new PlanVariableAllocator();
VariableAllocator variableAllocator = new VariableAllocator();
PlanNodeIdAllocator idAllocator = new PlanNodeIdAllocator();

// Call optimize
Expand Down Expand Up @@ -233,7 +235,7 @@ public void testNotOptimizeFilter() {
ConnectorSession session =
new TestingConnectorSession(
prestoSessionProperties.getSessionProperties(), prestoSessionConfig);
PlanVariableAllocator variableAllocator = new PlanVariableAllocator();
VariableAllocator variableAllocator = new VariableAllocator();
PlanNodeIdAllocator idAllocator = new PlanNodeIdAllocator();

// Call optimize
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ under the License.
<groupId>org.apache.paimon</groupId>
<artifactId>paimon-presto</artifactId>
<name>Paimon : Presto</name>
<version>0.8-SNAPSHOT</version>
<version>0.8.2</version>

<packaging>pom</packaging>

Expand Down