Search in sources :

Example 6 with PartitionInput

use of com.amazonaws.services.glue.model.PartitionInput in project presto by prestodb.

the class TestGlueInputConverter method testConvertPartition.

@Test
public void testConvertPartition() {
    PartitionInput partitionInput = GlueInputConverter.convertPartition(testPartition);
    assertEquals(partitionInput.getParameters(), testPartition.getParameters());
    assertStorage(partitionInput.getStorageDescriptor(), testPartition.getStorage());
    assertEquals(partitionInput.getValues(), testPartition.getValues());
}
Also used : PartitionInput(com.amazonaws.services.glue.model.PartitionInput) Test(org.testng.annotations.Test)

Aggregations

PartitionInput (com.amazonaws.services.glue.model.PartitionInput)6 PrestoException (com.facebook.presto.spi.PrestoException)4 AmazonServiceException (com.amazonaws.AmazonServiceException)3 EntityNotFoundException (com.amazonaws.services.glue.model.EntityNotFoundException)2 UpdatePartitionRequest (com.amazonaws.services.glue.model.UpdatePartitionRequest)2 PartitionNotFoundException (com.facebook.presto.hive.PartitionNotFoundException)2 PartitionStatistics (com.facebook.presto.hive.metastore.PartitionStatistics)2 SchemaTableName (com.facebook.presto.spi.SchemaTableName)2 BatchCreatePartitionRequest (com.amazonaws.services.glue.model.BatchCreatePartitionRequest)1 BatchCreatePartitionResult (com.amazonaws.services.glue.model.BatchCreatePartitionResult)1 Partition (com.facebook.presto.hive.metastore.Partition)1 PartitionWithStatistics (com.facebook.presto.hive.metastore.PartitionWithStatistics)1 GlueInputConverter (com.facebook.presto.hive.metastore.glue.converter.GlueInputConverter)1 ArrayList (java.util.ArrayList)1 ExecutionException (java.util.concurrent.ExecutionException)1 Future (java.util.concurrent.Future)1 Test (org.testng.annotations.Test)1