You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2019/12/16 16:42:57 UTC

[GitHub] [incubator-iceberg] pprudhvi commented on issue #700: Dropping a partition column throws NPE

pprudhvi commented on issue #700: Dropping a partition column throws NPE
URL: https://github.com/apache/incubator-iceberg/issues/700#issuecomment-566141883
 
 
   `public static void main(String... args) {
       IcebergTableOperations tableOperations = new IcebergTableOperations(new Path("/tmp/student"), new Configuration());
       Schema schema = new Schema(Types.NestedField.required(1, "id", Types.IntegerType.get()),
           Types.NestedField.required(2, "name", Types.IntegerType.get()));
       PartitionSpec partitionSpec = PartitionSpec.builderFor(schema).identity("id").build();
       TableMetadata metadata = TableMetadata.newTableMetadata(tableOperations, schema, partitionSpec, "/tmp/student");
       Transactions.createTableTransaction(tableOperations, metadata).commitTransaction();
       Transactions.newTransaction(tableOperations).updateSchema().deleteColumn("id").commit();
     }`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org