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
I’ll trace the Glue service and request routing patterns, locate existing delete-table implementations and tests, then implement the service method plus API wiring and verify with focused tests and the broader relevant test suite. I’ll avoid modifying tests per the repository instructions.
- Assistant
The repository already has Glue
DeleteTablerouting but no batch case. I’ll inspect the full Glue handler/service models and storage semantics so the new operation matches existing validation, error mapping, and account/region behavior rather than introducing a parallel implementation. - Assistant
The service’s table keys are normalized and
deleteTablealready removes associated partitions. The batch method will validate the database once, inspect each requested table without throwing, delete found tables through the existing cleanup path, and return one structuredEntityNotFoundExceptiondetail per missing input name. The handler will expose the AWS-shaped{ "Errors": [...] }response. - Assistant
The first edit attempt could not run because this environment lacks Python, so no files were changed. I’ll apply the same narrowly scoped changes using the available shell tools, then compile and run Glue tests.
- Assistant
Compilation and the existing
GlueServiceTestpass. The implementation also preserves case-insensitive lookup while retaining the caller’s table name in an error, and uses the existing partition cleanup for successful deletions. I’ll now run the full test suite and inspect the final diff for accidental changes. - Assistant
The full Maven suite exceeded the execution timeout (there is no lingering Maven process and the working tree remains clean apart from the two intended source files). The focused Glue service tests and compilation passed, and
git diff --checkreports no whitespace errors. I’m doing one final source review, then I’ll submit.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.