presto-phoenix/src/main/java/io/prestosql/plugin/phoenix/PhoenixMetadata.java/PhoenixMetadata/beginInsert
class PhoenixMetadata:    @Override
    public ConnectorInsertTableHandle beginInsert(ConnectorSession session, ConnectorTableHandle tableHandle)
    {
        JdbcTableHandle handle = (JdbcTableHandle) tableHandle;
        List<JdbcColumnHandle> allColumns = phoenixClient.getColumns(session, handle);
        List<JdbcColumnHandle> nonRowkeyColumns = allColumns.stream()
                .filter(column -> !ROWKEY.equalsIgnoreCase(column.getColumnName()))
                .collect(toImmutableList());

        return new PhoenixOutputTableHandle(
                Optional.ofNullable(handle.getSchemaName()),
                handle.getTableName(),
                nonRowkeyColumns.stream().map(JdbcColumnHandle::getColumnName).collect(toImmutableList()),
                nonRowkeyColumns.stream().map(JdbcColumnHandle::getColumnType).collect(toImmutableList()),
                Optional.of(nonRowkeyColumns.stream().map(JdbcColumnHandle::getJdbcTypeHandle).collect(toImmutableList())),
                nonRowkeyColumns.size() != allColumns.size());
    }