ISSUE DESCRIPTION [BUG] Glue BatchDeleteTable is unsupported Service AWS Glue AWS API…
- User
ISSUE DESCRIPTION
[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
I’ll first inspect the Glue service, request routing, and existing Glue tests to understand how similar batch operations and error payloads are implemented. Then I’ll reproduce the unsupported action through the project’s test/runtime conventions, implement the service and API wiring, and run focused plus broader tests.
- Assistant
The action is absent from
GlueJsonHandler, confirming the reportedInvalidActionpath. I’ll now read the Glue handler/service and storage API carefully, especiallydeleteTable, exception behavior, JSON naming conventions, and account/region scoping, so the batch method preserves existing semantics while converting only per-table “not found” failures into response entries. - Assistant
The existing single-delete message (
Table not found: db.table) differs from the AWS batch-specific message required by the issue (Table <name> not found), so the batch API should report a dedicated structured error rather than expose the single-delete exception text. I also noticed a schema-version batch response usesErrorDetails(plural), whereas this API contract explicitly requiresErrorDetail(singular); I’ll avoid copying that API-specific spelling. Next I’ll inspect exact constructors/getters and project formatting/check rules before editing. - Assistant
The requested interface can be implemented narrowly:
- Validate the database once (so a nonexistent catalog/database remains a request-level error rather than producing misleading table errors).
- For each requested name, use the normalized table key to test existence; delete existing tables through
deleteTableso associated partitions are also removed. - Return one
BatchDeleteTableErrorrecord per missing name, preserving input order and the original requested name/message. - Add
BatchDeleteTabledispatch and explicitly construct the AWSErrors/TableName/ErrorDetailshape.
I’ll make only these production changes. Per the environment rule, I will not modify or add repository tests; verification will use existing tests and temporary/manual requests.
- Assistant
The edit did not run because this minimal environment lacks Python; compilation also revealed
HOMEis unset. No files were changed. I’ll apply the same patch with the repository editor command, then invoke Maven with a temporaryHOMEvalue. - Assistant
As expected from the partial edit, compilation fails only because the handler now references the not-yet-inserted service method. The editor located the service anchor at line 164 but declined replacing text outside its displayed window. I’ll open that location and insert the method directly after
deleteTable, then compile and run the focused Glue service tests. - Assistant
I inserted at the wrong boundary and left the original
createPartitiondeclaration before the new method, which the compiler correctly rejected. I’ll replace the entire affected block cleanly, restoringcreatePartitionexactly and placing the batch method before it. - Assistant
Compilation and all existing
GlueServiceTesttests now pass. Before end-to-end verification, I’ll inspect the Glue controller’s target prefix and existing integration request examples. I’ll also consider duplicate names: processing sequentially means a duplicate existing table is deleted on first occurrence and correctly reported missing on the second, which follows “process each requested name” semantics; case-insensitive lookup remains consistent with the rest of Glue. Empty/error-only batches naturally return"Errors":[]or ordered errors. - Assistant
The controller confirms
AWSGlue.BatchDeleteTableis the correct wire target. I’ll now run Floci and reproduce the exact mixed existing/missing scenario with raw JSON 1.1 requests (equivalent to what the CLI sends), then issueGetTableto confirm deletion. This avoids adding forbidden test files while validating both routing and serialized response shape. - Assistant
The end-to-end reproduction now matches the issue exactly: HTTP 200 with one
Errorsentry containing singularErrorDetail, the missing table’s name/code/message, and a subsequentGetTablereturnsEntityNotFoundException. I’ll stop the dev server, run the existing Glue catalog integration suite (which exercises the same handler/controller/storage layers), then inspect the final diff and repository status for accidental artifacts.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.