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:
{ "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.aws: [ERROR]: An error occurred (InvalidAction) when calling the BatchDeleteTable operation: Action BatchDeleteTable is not supportedReproduction
endpoint=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_tableEnvironment
- Floci version / image tag:
floci/floci:1.5.22 - Java SDK version (if applicable): AWS CLI
- How you're running Floci (Docker / native /
mvn quarkus:dev): Docker
Interface
Type: Function Name: batchDeleteTables Path: src/main/java/io/github/hectorvent/floci/services/glue/GlueService.java Input: String databaseName, List tableNames Output: List<GlueService.BatchDeleteTableError> Description: Deletes multiple tables by name within a database, skipping and reporting errors for any tables that are not found. Use this to process the
BatchDeleteTableAWS Glue API action. - Floci version / image tag:
Assistant
Let's look at ECR's BatchDeleteImage implementation as a style reference, since it's a similar batch pattern.
Assistant
Now let's add the
batchDeleteTablesmethod andBatchDeleteTableErrorrecord to GlueService.java.Assistant
Now let's add the handler for
BatchDeleteTablein GlueJsonHandler.java.Assistant
Now add the
handleBatchDeleteTableprivate method. Let's insert it right afterhandleCreateUserDefinedFunctionor near the top private methods section.Assistant
I need to add a blank line before
private Response handleCreateUserDefinedFunction.Assistant
Now let's build the project to check for compile errors.
Assistant
Compilation succeeded (no errors reported). Now let's check existing tests for GlueService/GlueJsonHandler to add proper coverage understanding, and run them.
Assistant
Let's run the existing GlueServiceTest to confirm nothing is broken.
Assistant
All tests passed (no failures reported). Let's confirm test summary explicitly.
Assistant
Now let's try to run the app and reproduce the exact scenario from the issue using curl to hit the Glue endpoint directly (simulating AWS CLI JSON protocol), to functionally verify end-to-end.
Assistant
Good,
__typeis correct. Now run the test.Assistant
The test passed, confirming end-to-end behavior matches the issue's expectations. Now clean up the temporary test file.
Assistant
Now let's run the full existing Glue test suite (all glue-related tests) to make sure nothing is broken.
Assistant
All Glue-related tests pass. Let's also verify
git statusandgit diffto double-check the final changes.Assistant
The diff is clean and minimal. Let's run the complete test suite once more (broader) to be safe, focusing on modules that might reference GlueService indirectly (e.g., Athena which uses GlueService).
Assistant
All related tests pass. Let's check the checklist items now.
Assistant
Confirmed the bug existed (before the fix,
BatchDeleteTablereturnedInvalidAction). Now restore the fix and remove the temp test.Assistant
Good, the fix is restored and repo is clean (only the two intended source file changes remain). Let's do one final full test run of the Glue test suite to be safe before submitting.
Assistant
All tests pass. Now let me go through the checklist:
Assistant
Checklist review:
-
[x] If an error was reported in the issue description, I have successfully reproduced it. I wrote a temporary integration test (via /) that called and confirmed it returned before my fix (verified explicitly by stashing my changes, running the test, and observing the error, then restoring my changes).
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.