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:
json{ "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.textaws: [ERROR]: An error occurred (InvalidAction) when calling the BatchDeleteTable operation: Action BatchDeleteTable is not supportedReproduction
bashendpoint=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_table Assistant
Now let's add the
batchDeleteTablesmethod to GlueService and wire up the handler forBatchDeleteTableaction.Assistant
Now let's add
batchDeleteTablesmethod afterdeleteTable, plus theBatchDeleteTableErrorrecord.Assistant
The tool seems to not accept
lineas parameter name properly for edit; it requires positional line range. Let me use correct syntax with heredoc.Assistant
Now let's add the handler in GlueJsonHandler.java for "BatchDeleteTable" action, mapping to the AWS response format shown in the issue.
Assistant
Now edit with edit command directly on line range 88:93.
Assistant
Now let's add the
handleBatchDeleteTableprivate method. Let's place it nearhandleGetPartitionsor after CreatePartition related helpers - actually let's just insert after the handleUpdateUserDefinedFunction method, or better near delete related functions. Let's check end of file for a good place, e.g. right after handleDeleteUserDefinedFunction.Assistant
Good, I can use
mapper.convertValue(request.get("TablesToDelete"), List.class)pattern. Now add the handler method afterhandleDeleteUserDefinedFunction.Assistant
Need a blank line before
handleCreateRegistry.Assistant
Now let's compile the project to verify correctness.
Assistant
Compilation succeeded with no errors. Now let's find existing tests for Glue to check patterns and possibly test manually.
Assistant
Let's write a quick reproduction script using curl to simulate the JSON-RPC request directly (since this is a Quarkus service), or better run the app and use aws cli. Let's check how the app is normally started/tested.
Assistant
Let's start the app in dev/test mode and try the AWS CLI reproduction directly, verifying behavior end-to-end.
Assistant
Let's try without -o (online) since we may have network access, or check if artifact is cached elsewhere.
Assistant
Need
RestAssuredJsonUtilshelper used in other tests, let's check it.Assistant
I need to call
RestAssuredJsonUtils.configureAwsContentTypes()in a@BeforeAll. Let's update my temp test.Assistant
The test passes, confirming the fix works end-to-end. Now let's remove the temp test file and run the full existing Glue test suite to make sure nothing is broken.
Assistant
All 190 existing Glue tests pass. Let's also check the docs file to update supported actions list if relevant.
Assistant
Let's update the docs to include the new action.
Assistant
Let's add an entry under
[Unreleased].Assistant
Good. Now let's double check the final diff for correctness.
Assistant
The diff looks clean. Let's run the full test suite once more to confirm everything passes.
Assistant
All 190 tests pass. Let's verify
git statusto confirm the temp test file was properly removed and only intended changes remain.Assistant
Clean. Now let's go through the checklist explicitly.
Assistant
I have completed the implementation. Let me review the checklist:
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.