Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
James Taylor authored and kokosing committed Aug 29, 2019
1 parent f0dc727 commit c5858b1
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,30 +185,31 @@ public void testIOExplain()
assertEquals(
jsonCodec(IoPlan.class).fromJson((String) getOnlyElement(result.getOnlyColumnAsSet())),
new IoPlan(
ImmutableSet.of(new TableColumnInfo(
new CatalogSchemaTableName(catalog, "tpch", "test_orders"),
ImmutableSet.of(
new ColumnConstraint(
"orderkey",
BIGINT.getTypeSignature(),
new FormattedDomain(
false,
ImmutableSet.of(
new FormattedRange(
new FormattedMarker(Optional.of("1"), EXACTLY),
new FormattedMarker(Optional.of("1"), EXACTLY)),
new FormattedRange(
new FormattedMarker(Optional.of("2"), EXACTLY),
new FormattedMarker(Optional.of("2"), EXACTLY))))),
new ColumnConstraint(
"processing",
BOOLEAN.getTypeSignature(),
new FormattedDomain(
false,
ImmutableSet.of(
new FormattedRange(
new FormattedMarker(Optional.of("false"), EXACTLY),
new FormattedMarker(Optional.of("false"), EXACTLY)))))))),
ImmutableSet.of(
new TableColumnInfo(
new CatalogSchemaTableName(catalog, "tpch", "test_orders"),
ImmutableSet.of(
new ColumnConstraint(
"orderkey",
BIGINT.getTypeSignature(),
new FormattedDomain(
false,
ImmutableSet.of(
new FormattedRange(
new FormattedMarker(Optional.of("1"), EXACTLY),
new FormattedMarker(Optional.of("1"), EXACTLY)),
new FormattedRange(
new FormattedMarker(Optional.of("2"), EXACTLY),
new FormattedMarker(Optional.of("2"), EXACTLY))))),
new ColumnConstraint(
"processing",
BOOLEAN.getTypeSignature(),
new FormattedDomain(
false,
ImmutableSet.of(
new FormattedRange(
new FormattedMarker(Optional.of("false"), EXACTLY),
new FormattedMarker(Optional.of("false"), EXACTLY)))))))),
Optional.of(new CatalogSchemaTableName(catalog, "tpch", "test_orders"))));

assertUpdate("DROP TABLE test_orders");
Expand All @@ -220,18 +221,19 @@ public void testIOExplain()
assertEquals(
jsonCodec(IoPlan.class).fromJson((String) getOnlyElement(result.getOnlyColumnAsSet())),
new IoPlan(
ImmutableSet.of(new TableColumnInfo(
new CatalogSchemaTableName(catalog, "tpch", "test_orders"),
ImmutableSet.of(
new ColumnConstraint(
"orderkey",
BIGINT.getTypeSignature(),
new FormattedDomain(
false,
ImmutableSet.of(
new FormattedRange(
new FormattedMarker(Optional.of("1"), EXACTLY),
new FormattedMarker(Optional.of("199"), EXACTLY)))))))),
ImmutableSet.of(
new TableColumnInfo(
new CatalogSchemaTableName(catalog, "tpch", "test_orders"),
ImmutableSet.of(
new ColumnConstraint(
"orderkey",
BIGINT.getTypeSignature(),
new FormattedDomain(
false,
ImmutableSet.of(
new FormattedRange(
new FormattedMarker(Optional.of("1"), EXACTLY),
new FormattedMarker(Optional.of("199"), EXACTLY)))))))),
Optional.of(new CatalogSchemaTableName(catalog, "tpch", "test_orders"))));

assertUpdate("DROP TABLE test_orders");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -471,12 +471,13 @@ public Void visitTableScan(TableScanNode node, IoPlanBuilder context)
{
TableMetadata tableMetadata = metadata.getTableMetadata(session, node.getTable());
TupleDomain<ColumnHandle> predicate = metadata.getTableProperties(session, node.getTable()).getPredicate();
context.addInputTableColumnInfo(new IoPlan.TableColumnInfo(
new CatalogSchemaTableName(
tableMetadata.getCatalogName().getCatalogName(),
tableMetadata.getTable().getSchemaName(),
tableMetadata.getTable().getTableName()),
parseConstraints(node.getTable(), predicate)));
context.addInputTableColumnInfo(
new IoPlan.TableColumnInfo(
new CatalogSchemaTableName(
tableMetadata.getCatalogName().getCatalogName(),
tableMetadata.getTable().getSchemaName(),
tableMetadata.getTable().getTableName()),
parseConstraints(node.getTable(), predicate)));
return null;
}

Expand Down

0 comments on commit c5858b1

Please sign in to comment.