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 me explore the repository structure to understand the codebase.
Assistant
Now let me look at the GlueJsonHandler to understand how actions are routed.
Assistant
Let me look at the test file to understand patterns.
Assistant
Let me check the compatibility tests and how BatchDeleteTable might be expected.
Assistant
Let me look at the AwsException and how records serialize, and check the model classes.
Assistant
Let me check how records are serialized in the ECR handler to follow the pattern.
Assistant
Let me check the docs and the supported actions documentation.
Assistant
Now I have a clear understanding. Let me implement the
batchDeleteTablesmethod inGlueServiceand add the handler case. First, let me add the record and method toGlueService.Assistant
Now let me add the
batchDeleteTablesmethod afterdeleteTable:Assistant
Let me fix the spacing around the new method:
Assistant
Now let me add the
BatchDeleteTableErrorrecord. Let me find the UserDefinedFunctionPage record:Assistant
I need to add a blank line after the record. Let me fix:
Assistant
Now let me add the handler case in
GlueJsonHandler. Let me view the DeleteTable case:Assistant
Now let me add the
handleBatchDeleteTablehelper method. Let me add it afterhandleDeleteUserDefinedFunction:Assistant
The edit caused duplication. Let me fix the duplicated lines:
Assistant
Now fix the duplicate
handleCreateRegistryline:Assistant
Now let me update the docs:
Assistant
Now let me verify the imports in GlueJsonHandler include what's needed:
Assistant
All imports are present. Now let me compile to verify:
Assistant
Compilation succeeded. Now let me run the existing GlueService tests:
Assistant
Now let me write a temporary test to verify the new
batchDeleteTablesbehavior matches the expected AWS behavior. Let me create a temporary test:Assistant
The tests pass. Now let me remove the temporary test file:
Assistant
Let me check if there are integration tests for the GlueJsonHandler to confirm the response format:
Assistant
Let me run the full Glue test suite to ensure nothing is broken:
Assistant
The pattern doesn't match the package style. Let me run the glue tests differently — by package.
Assistant
Let me write a temporary Quarkus integration test to verify the full HTTP response path matches the expected AWS format:
Assistant
The integration test confirms the full HTTP response path works and matches the expected AWS format exactly. Let me remove the temporary test:
Assistant
Now let me verify the final state of my changes with git diff:
Assistant
Let me run a broader compile check including tests to make sure nothing else broke:
Assistant
Let me run the remaining glue schema registry integration tests to be thorough:
Assistant
All tests pass. Let me review the final diff once more for the docs:
Assistant
All changes are complete and verified. Let me provide a summary of the checklist:
Checklist Review
-
[x] Reproduced the error: The issue stated
BatchDeleteTablewas rejected asInvalidAction("Action BatchDeleteTable is not supported"). I confirmed this by inspectingGlueJsonHandler.handle()— there was noBatchDeleteTablecase, so it fell through to thedefault -> throw new AwsException("InvalidAction", ...)branch. -
[x] Confirmed my fix resolves the error: I added the
BatchDeleteTablecase plus the handler, and the service method. I verified with a temporary unit test (deletes existing table, reports for missing table, afterwards returns ) and a temporary Quarkus integration test confirming the exact HTTP response shape matches AWS:
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.