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
Now let's look at GlueJsonHandler for DeleteTable and similar batch handling patterns (e.g., BatchGetPartition or similar) to understand conventions.
Assistant
Good, no separate action registry beyond the switch. Now let's implement changes.
Assistant
No python3, use
editcommand instead.Assistant
Now let's update GlueJsonHandler to add the "BatchDeleteTable" case.
Assistant
Now add the "BatchDeleteTable" case right after DeleteTable, using a helper method for readability.
Assistant
Now add the helper method
handleBatchDeleteTable. Let's insert it afterhandleCreateUserDefinedFunctionor right before it, at line 139.Assistant
Missing a blank line before
handleCreateUserDefinedFunction. Let's fix that for readability.Assistant
Now let's check
Listis imported already (it is, java.util.List). Let's build the project.Assistant
Compilation succeeded with no errors. Now let's check for existing tests to run related to Glue for verification, and also write a quick reproduction test.
Assistant
Now let's run the full test suite for the Glue service to make sure nothing broke.
Assistant
Offline mode doesn't have that artifact. Let's try without -o (online) since there might be network access, or check if there's local repo cache elsewhere.
Assistant
Tests ran and seemingly passed (no failures reported at the end). Let's check for BUILD SUCCESS message.
Assistant
All 24 existing tests pass. Now let's create a quick temporary test to verify the new functionality end-to-end (unit-level, not via HTTP), then remove it before submission.
Assistant
Now let's create a temporary test file in the test tree, run it, and remove before submission.
Assistant
StorageFactory is a class not interface. Let's check the InMemoryStorageFactory used in GlueServiceTest.
Assistant
I'll fix my temp test to match this pattern properly.
Assistant
The temp test passes, confirming the fix works. Now let's remove the temporary test file and check GlueJsonHandler compiles correctly with full build.
Assistant
Now let's run full existing Glue-related test suite once more to make sure everything is fine, and check for any bats/compatibility test references to BatchDeleteTable that we should be aware of (not to edit them, just informational).
Assistant
No existing references. Let's run the full test module for glue package once more to be safe.
Assistant
All 190 tests in the glue package pass. Now let's check git diff to review the final changes and confirm the temp test file is removed.
Assistant
The diff is clean. Let's also check the docs file to see if we should document the new supported action.
Assistant
Let's update docs to reflect the new supported action.
Assistant
Docs updated. Now let's double check whole build (compile) once more and full test run for glue package, plus verify no leftover temp files.
Assistant
Everything looks clean. No temp test files remain, compile succeeds, and only the intended files were modified.
Now let's go through the checklist:
Assistant
All 190 tests pass. Let's review the checklist:
Checklist review:
-
✅ Reproduced the reported error: Confirmed via code inspection that
GlueJsonHandlerhad no case for"BatchDeleteTable", which would fall through to thedefaultbranch throwingAwsException("InvalidAction", "Action " + action + " is not supported", 400)— exactly matching the reported error message. I also wrote and ran a temporary unit test (removed afterward) directly exercising the newGlueService.batchDeleteTablesmethod to validate the exact scenario from the issue (existing + missing table), confirming the missing table produces anEntityNotFoundExceptionerror entry while the existing table gets deleted. -
✅ Confirmed the fix resolves the error: Added
GlueService.batchDeleteTables(String databaseName, List<String> tableNames)returning a list ofBatchDeleteTableErrorrecords, and wired a new"BatchDeleteTable"case intoGlueJsonHandlerthat calls it and formats the AWS-style response ( + /). The temporary test confirmed: existing table gets deleted (subsequent throws ), and the missing table is reported in the list with the correct code — matching the AWS CLI behavior described in the issue.
-
Assistant
-
✅ Edge cases considered:
nulltableNameslist handled gracefully (returns empty error list).- Multiple missing tables each get their own error entry; existing tables among them are still deleted.
- Case-insensitivity: reused
tableKey/normalizeNamehelpers consistent with existingdeleteTable/getTable, so mixed-case table names behave the same as the rest of the API. - Table names are echoed back exactly as provided in the request (not normalized) in the error, matching AWS behavior shown in the issue's example output (
"missing_table"). - Partitions of deleted tables are still cleaned up because
batchDeleteTablescalls the existingdeleteTablemethod internally, preserving that behavior. - Empty
Errorslist works fine when all tables exist (returnsMap.of("Errors", [])).
-
✅ Ran existing tests: Executed the full Glue-related test suite (
GlueServiceTest,GlueJsonHandler-adjacent tests, schema registry tests, integration tests) — all 190 tests pass with no failures. Also ran a full to ensure no compilation errors anywhere in the codebase after the change.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.