throw new DuplicatePartitionException(pair.getSecond()); } else if (!duplicatedPartition) { if (alterTable.getLocation() != null) { partitionPath = new Path(alterTable.getLocation()); } else { alterTable.getPartitionValues(), alterTable.getLocation(), AlterTableType.ADD_PARTITION)); } else if (!undefinedPartition) { catalog.alterTable(CatalogUtil.addOrDropPartition(qualifiedName, alterTable.getPartitionColumns(), alterTable.getPartitionValues(), alterTable.getLocation(), AlterTableType.DROP_PARTITION));
throw new DuplicatePartitionException(pair.getSecond()); } else if (!duplicatedPartition) { if (alterTable.getLocation() != null) { partitionPath = new Path(alterTable.getLocation()); } else { alterTable.getPartitionValues(), alterTable.getLocation(), AlterTableType.ADD_PARTITION, numBytes)); } else if (!undefinedPartition) { catalog.alterTable(CatalogUtil.addOrDropPartition(qualifiedName, alterTable.getPartitionColumns(), alterTable.getPartitionValues(), alterTable.getLocation(), AlterTableType.DROP_PARTITION));
partitionBuilder.addPartitionValues(partitionValue); if (node.getLocation() != null) { partitionBuilder.setLocation(node.getLocation());
partitionBuilder.addPartitionValues(partitionValue); if (node.getLocation() != null) { partitionBuilder.setLocation(node.getLocation());
assertEquals(alterTableNode.getPartitionValues()[1], "2"); assertEquals(alterTableNode.getLocation(), "hdfs://xxx.com/warehouse/partitioned_table/col1=1/col2=2");