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 start by exploring the repository structure to understand the codebase and find the relevant files.
Assistant
Let me explore the repository structure first.
Assistant
Now let me look at the GlueService.java to understand the existing structure:
Assistant
Now let me look at the test file to understand test patterns:
Assistant
Now let me look at the Table model and check how the AwsException works:
Assistant
Now I have a good understanding. Let me implement the
batchDeleteTablesmethod inGlueServiceand add the handler inGlueJsonHandler. First, let me check the Table model for relevant fields:Assistant
Now I have a clear understanding. Let me implement the solution. First, I'll add the
batchDeleteTablesmethod andBatchDeleteTableErrorrecord toGlueService.java:Assistant
Now let me add the
batchDeleteTablesmethod right afterdeleteTable:Assistant
Now let me add the
batchDeleteTablesmethod afterdeleteTable(after line 171):Assistant
I need to fix the missing blank line. Let me fix that:
Assistant
Now I need to add the
BatchDeleteTableErrorrecord. Let me find theUserDefinedFunctionPagerecord and add the new record nearby:Assistant
Now let me add the
BatchDeleteTablecase to theGlueJsonHandler. Let me open it and find theDeleteTablecase:Assistant
Now let me add the
BatchDeleteTablecase afterDeleteTable:Assistant
There's a duplicate
case "CreatePartition"line. Let me fix that:Assistant
Now I need to add the
handleBatchDeleteTablemethod. Let me add it after thehandleDeleteUserDefinedFunctionmethod:Assistant
Now let me compile the project to make sure everything builds correctly:
Assistant
Compilation succeeded. Now let me write a temporary test to verify the behavior works correctly:
Assistant
All 6 tests pass. Now let me run the existing GlueServiceTest to make sure nothing broke:
Assistant
All existing tests pass. Now let me clean up the temporary test file:
Assistant
Let me also check if there are compatibility tests that might need updating, and run a broader test to make sure nothing else is broken:
Assistant
Now let me run a broader test suite to make sure I haven't broken anything in the glue service area:
Assistant
All tests pass. Let me verify my changes with
git diff:Assistant
Let me check if there's any service descriptor or catalog that lists supported Glue actions that might also need updating:
Assistant
The changes look complete. The error "Action BatchDeleteTable is not supported" comes from the
defaultcase in theGlueJsonHandler.handle()switch statement, which I've now added a case for. Let me verify the full test suite compiles properly one more time:Assistant
Everything compiles. Let me verify the final state of my changes one more time:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.