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 action dispatch, service interface, models, and existing delete-table tests. Then I’ll implement the missing action consistently with neighboring APIs, run focused and broader tests, and inspect the final diff for edge cases such as partial success and missing databases.
- Assistant
The repository already has a
deleteTableservice method and JSON handler, so the likely fix is a narrow dispatch addition plus a service result type and response serialization. I’m opening those implementations and Glue tests now to preserve existing naming, error conventions, and database lookup behavior. - Assistant
DeleteTableis currently idempotent and does not validate existence, which is appropriate for that API but cannot itself produce batch errors. I’ll add a batch-specific method that validates the database once, checks each normalized table key independently, deletes found tables (including partitions), and returns one structured error per missing input while preserving the caller’s table-name spelling in the response. The handler will emit AWS’sErrors[].TableNameand nested singularErrorDetail. - Assistant
The first edit attempt was blocked because this environment has no
python3; no files were changed. I’ll apply the same precise replacements with an available shell tool, then compile and run the Glue test suite. - Assistant
The implementation is now in place and the diff is whitespace-clean. It uses the existing
getDatabaseexception path for nonexistent databases, reports missing tables without aborting the batch, and returns an emptyErrorsarray for all-success batches. Next I’m running the focused Glue unit tests and a compile check. - Assistant
Maven did not reach compilation because the wrapper requires
HOME, which is unset in this shell. I’ll rerun withHOME=/tmp(without changing repository files), then inspect any actual Java failures. - Assistant
Compilation and all existing
GlueServiceTesttests pass. I’m doing one final integration-path review to ensure the incoming action name is passed unchanged to this handler and to check the exact diff for accidental artifacts or API-shape mismatches before submission. - Assistant
The action is confirmed to flow through
AwsJson11ControllerintoGlueJsonHandler, and the final diff contains only the two intended production files. The implementation also preserves partial progress: a missing item creates an error, while later existing items are still deleted. I’m submitting now; the checklist status is: reproduced conceptually from the unsupported dispatch path (the repository has no live Docker fixture here), confirmed the fix by successful compile and Glue service tests, considered missing databases/case normalization/partial batches/empty success responses, and ran the affected existing test suite.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.