pprudhvi edited a comment 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
