Skip to content

Commit

Permalink
Remove unnecessary block
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjo2144 authored and phd3 committed Mar 1, 2022
1 parent bb58f10 commit 33277e7
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -886,14 +886,13 @@ private ConnectorTableMetadata getTableMetadata(ConnectorSession session, Schema
private List<ColumnMetadata> getColumnMetadatas(Table table)
{
return table.schema().columns().stream()
.map(column -> {
return ColumnMetadata.builder()
.setName(column.name())
.setType(toTrinoType(column.type(), typeManager))
.setNullable(column.isOptional())
.setComment(Optional.ofNullable(column.doc()))
.build();
})
.map(column ->
ColumnMetadata.builder()
.setName(column.name())
.setType(toTrinoType(column.type(), typeManager))
.setNullable(column.isOptional())
.setComment(Optional.ofNullable(column.doc()))
.build())
.collect(toImmutableList());
}

Expand Down

0 comments on commit 33277e7

Please sign in to comment.