Skip to content

Commit

Permalink
Cassandra connector ccreate table
Browse files Browse the repository at this point in the history
  • Loading branch information
ebyhr authored and highker committed Sep 24, 2020
1 parent c857741 commit 77bfa04
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public String toString()
@Override
public void createTable(ConnectorSession session, ConnectorTableMetadata tableMetadata, boolean ignoreExisting)
{
throw new PrestoException(NOT_SUPPORTED, "CREATE TABLE not yet supported for Cassandra");
createTable(tableMetadata);
}

@Override
Expand Down Expand Up @@ -273,6 +273,11 @@ public void renameTable(ConnectorSession session, ConnectorTableHandle tableHand

@Override
public ConnectorOutputTableHandle beginCreateTable(ConnectorSession session, ConnectorTableMetadata tableMetadata, Optional<ConnectorNewTableLayout> layout)
{
return createTable(tableMetadata);
}

private CassandraOutputTableHandle createTable(ConnectorTableMetadata tableMetadata)
{
ImmutableList.Builder<String> columnNames = ImmutableList.builder();
ImmutableList.Builder<Type> columnTypes = ImmutableList.builder();
Expand Down

0 comments on commit 77bfa04

Please sign in to comment.