prestodb/presto · error · PrestoException
INVALID_PROCEDURE_ARGUMENT
INVALID_PROCEDURE_ARGUMENT
Error message
input partition column names doesn't match actual partition column names
What it means
Procedure-argument validation: the partition column names supplied to create_empty_partition do not equal the table's actual partition column set (order or names differ), so the target partition cannot be identified.
Source
Thrown at presto-hive/src/main/java/com/facebook/presto/hive/CreateEmptyPartitionProcedure.java:115
public void createEmptyPartition(ConnectorSession session, String schema, String table, List<Object> partitionColumnNames, List<Object> partitionValues)
{
try (ThreadContextClassLoader ignored = new ThreadContextClassLoader(getClass().getClassLoader())) {
doCreateEmptyPartition(session, schema, table, partitionColumnNames, partitionValues);
}
}
private void doCreateEmptyPartition(ConnectorSession session, String schema, String table, List<Object> partitionColumnNames, List<Object> partitionValues)
{
TransactionalMetadata hiveMetadata = hiveMetadataFactory.get();
HiveInsertTableHandle hiveInsertTableHandle = (HiveInsertTableHandle) hiveMetadata.beginInsert(session, new HiveTableHandle(schema, table));
List<String> actualPartitionColumnNames = hiveInsertTableHandle.getInputColumns().stream()
.filter(HiveColumnHandle::isPartitionKey)
.map(HiveColumnHandle::getName)
.collect(toImmutableList());
if (!Objects.equals(partitionColumnNames, actualPartitionColumnNames)) {
throw new PrestoException(INVALID_PROCEDURE_ARGUMENT, "input partition column names doesn't match actual partition column names");
}
List<String> partitionStringValues = partitionValues.stream()
.map(String.class::cast)
.collect(toImmutableList());
if (metastore.getPartition(new MetastoreContext(
session.getIdentity(),
session.getQueryId(),
session.getClientInfo(),
session.getClientTags(),
session.getSource(),
getMetastoreHeaders(session),
false,
HiveColumnConverterProvider.DEFAULT_COLUMN_CONVERTER_PROVIDER,
session.getWarningCollector(),
session.getRuntimeStats()),
schema,View on GitHub (pinned to 55bb57d202)
Solutions
- List the table's partition columns (SHOW CREATE TABLE) and pass them exactly
- Fix ordering or spelling of the names argument
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at presto-hive/src/main/java/com/facebook/presto/hive/CreateEmptyPartitionProcedure.java:115 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of prestodb/presto@55bb57d202 (2026-09-04).
Data as JSON: /api/errors/4adf62df8a6da34a.
Report an issue: GitHub.