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
Now let's look at GlueJsonHandler.java to see how actions are dispatched (e.g., DeleteTable, CreateTable) so we can add BatchDeleteTable similarly.
Assistant
Now let's add batchDeleteTables method and record to GlueService.java.
Assistant
Now insert the batchDeleteTables method after deleteTable, and add the record near UserDefinedFunctionPage.
Assistant
Now let's add the handler in GlueJsonHandler.java for "BatchDeleteTable".
Assistant
Now insert new case after line 93 (after DeleteTable block, before CreatePartition).
Assistant
I forgot the closing brace
}for the BatchDeleteTable case block. Let me fix line 112.Assistant
Now let's build to check compilation.
Assistant
Compiles fine. Now let's check where the routing decides which "service" for actions (maybe there's a list of supported actions for routing based on X-Amz-Target header prefix, need to check that BatchDeleteTable maps to GlueJsonHandler).
Assistant
That's routed generically based on service target, so no additional whitelisting needed. Now let's check test files for GlueService and integration tests to understand test conventions, then write a temp reproduction test.
Assistant
Test passed (no failures reported). Let's confirm by checking exit code and test summary explicitly.
Assistant
Test passed. Now remove the temp test file and run full Glue test suite to ensure nothing broke.
Assistant
Let's check the final summary of the whole test run.
Assistant
All tests pass. Let's also check the docs/services/glue.md for whether it lists supported actions and update if needed.
Assistant
Wait,
UpdateTableandGetTableVersionsaren't listed either but exist in code. Let's just add BatchDeleteTable to the Tables list for documentation completeness.Assistant
Now let's do a final review of the git diff for cleanliness.
Assistant
Good, this is consistent with the existing
deleteTableandgetTableimplementations. The implementation looks solid. Let's clean up and verify final full test suite build passes (already did for glue tests). Let's also double check no leftover temp file.Assistant
No leftover temp file. Everything is clean and tests pass.
Checklist review:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.