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
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*/
package com.facebook.presto.sql.planner;

import com.facebook.airlift.log.Logger;
import com.facebook.presto.common.plan.PlanCanonicalizationStrategy;
import com.facebook.presto.spi.PrestoException;
import com.facebook.presto.spi.plan.PlanNode;
Expand All @@ -29,6 +30,7 @@

public class CanonicalPlan
{
private static final Logger log = Logger.get(CanonicalPlan.class);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logger is not used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will remove

private final PlanNode plan;
private final PlanCanonicalizationStrategy strategy;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
import com.facebook.presto.sql.planner.plan.SequenceNode;
import com.facebook.presto.sql.planner.plan.TopNRowNumberNode;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
Expand Down Expand Up @@ -1081,7 +1082,7 @@ private Optional<List<Integer>> orderSourcesByTables(List<PlanNode> sources)
return Optional.of(sourceToPosition.values().stream().collect(toImmutableList()));
}

private static class CanonicalWriterTarget
public static class CanonicalWriterTarget
extends TableWriterNode.WriterTarget
{
private final ConnectorId connectorId;
Expand Down Expand Up @@ -1110,13 +1111,15 @@ public String getWriterTargetType()
}

@Override
@JsonIgnore
public SchemaTableName getSchemaTableName()
{
// Just return a sample table name, which is always same
return new SchemaTableName("schema", "table");
}

@Override
@JsonIgnore
public Optional<List<OutputColumnMetadata>> getOutputColumns()
{
return Optional.empty();
Expand Down
10 changes: 8 additions & 2 deletions presto-spi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<scope>test</scope>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<scope>test</scope>
<scope>provided</scope>
</dependency>

<dependency>
Expand Down Expand Up @@ -146,5 +146,11 @@
<artifactId>commons-math3</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this diff ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the empty line when coming across this file seeing the lacking of the empty line. But if we don't want it in this PR I can remove.

Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public Map<String, Object> getProperties()
{
return properties;
}

public Builder toBuilder()
{
return ColumnMetadata.builder()
Expand Down
Loading
Loading