Untitled conversation
- User
[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
Now let me look at the tests to match style:
- Assistant
I have all the context needed. Now implementing the fix — first the
batchDeleteTablesmethod inGlueService: - Assistant
Now the
BatchDeleteTableaction in the JSON handler: - Assistant
Now add unit tests. Let me check how deleteTable behaves for partitions and add tests to
GlueServiceTest: - Assistant
Now let's add compatibility test coverage. Check the bats file:
- Assistant
Now the Java SDK compatibility test:
- Assistant
Now build and run the unit tests:
- Assistant
Unit tests pass. Now let me verify end-to-end with the actual reproduction from the bug report. Let me check how to run the app:
- Assistant
Let me add an HTTP-level
@QuarkusTestintegration test that exercises the full wire path (the exact reproduction from the bug): - Assistant
Let me verify how error responses are shaped before running:
- Assistant
The
__typeformat matches. Now run the integration test: - Assistant
All verified. The fix is complete. Summary of changes:
Changes
src/main/java/io/github/hectorvent/floci/services/glue/GlueService.java- Added
batchDeleteTables(String databaseName, List<String> tableNames)(GlueService.java:164) — validates the database exists (throwsEntityNotFoundExceptionotherwise, matching AWS), deletes each existing table via the existingdeleteTable(which also cleans up partitions), and collects aBatchDeleteTableErrorfor each missing table instead of failing the whole batch.
- Added
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.