Untitled conversation
- User
[BUG] Glue BatchDeleteTable is unsupported
Service
AWS API Action
Expected behavior
AWS behavior supports
BatchDeleteTable. When the request contains one existing table and one missing table, AWS deletes the existing table and returns anErrorsentry for the missing table.AWS behavior verified with AWS CLI:
json{ "Errors": [ { "TableName": "missing_table", "ErrorDetail": { "ErrorCode": "EntityNotFoundException", "ErrorMessage": "Table missing_table not found" } } ] }A subsequent
GetTablefor the existing table returnsEntityNotFoundException.Actual behavior
Floci
floci/floci:1.5.22rejectsBatchDeleteTableas an unsupported action.textaws: [ERROR]: An error occurred (InvalidAction) when calling the BatchDeleteTable operation: Action BatchDeleteTable is not supportedReproduction
bashendpoint=http://localhost:4566 export AWS_ACCESS_KEY_ID=<redacted-secret> AWS_SECRET_ACCESS_KEY=<redacted-secret> AWS_DEFAULT_REGION=us-east-1 db=test_floci_batch_delete aws --endpoint-url "$endpoint" glue create-database --database-input "Name=$db" aws --endpoint-url "$endpoint" glue create-table \ --database-name "$db" \ --table-input 'Name=existing_table,StorageDescriptor={Columns=[{Name=id,Type=int}]}' aws --endpoint-url "$endpoint" glue batch-delete-table \ --database-name "$db" \ --tables-to-delete existing_table missing_table - Assistant
Now let me check the existing tests to follow their patterns:
- Assistant
Now I'll implement the fix. First, add
batchDeleteTablestoGlueService: - Assistant
Now add tests. Let me look at the existing table tests in
GlueServiceTest: - Assistant
I'll add a handler-level integration test matching the bug report scenario:
- Assistant
Let me verify how error responses render (
__typefield) in existing tests: - Assistant
Format matches. Now run the tests:
- Assistant
All tests pass. Let me run the full Glue test package as a final sanity check:
- Assistant
All 197 Glue tests pass.
BatchDeleteTableis now supported.Changes
GlueService.java:174— AddedbatchDeleteTables(String databaseName, List<String> tableNames):- Validates the database exists first (throws top-level
EntityNotFoundExceptionotherwise, matching AWS) - For each table: if not found, appends a
BatchDeleteTableError("EntityNotFoundException", "Table <name> not found")and continues; otherwise delegates to the existingdeleteTable(which also cleans up partitions) - Table lookup uses the existing
tableKeynormalization, so it's case-insensitive like the rest of the catalog - Added the
BatchDeleteTableError(tableName, errorCode, errorMessage)record per the interface spec
GlueJsonHandler.java:94— Added theBatchDeleteTablecase, which readsDatabaseNameand the array and builds the AWS response shape (following the same pattern as ). - Validates the database exists first (throws top-level
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.