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
Let me start by understanding the repository structure and the issue. The issue is about Glue
BatchDeleteTablebeing unsupported. I need to:- Explore the repository structure
- Find the Glue service implementation
- Implement the
batchDeleteTablesfunction - Test it
Let me start by exploring the repository.
Assistant
Let me look at the GlueService.java file mentioned in the issue description.
Assistant
The grep found no results. Let me look at the GlueService.java file directly.
Assistant
Let me open that file.
Assistant
Let me read the file content
Assistant
Now let me find the action dispatcher that handles Glue API actions, to understand how
BatchDeleteTableneeds to be wired inAssistant
Let me look at the GlueJsonHandler.java to see how actions are dispatched.
Assistant
Now I understand the structure. Let me look at the existing tests for Glue to understand testing
Assistant
Let me look at the GlueServiceTest.java to understand the testing
Assistant
Now I have a clear picture. Let me implement the solution:
- Add
batchDeleteTablesmethod andBatchDeleteTableErrorrecord toGlueService.java - Add
BatchDeleteTablecase toGlueJsonHandler.java
Let me start with `GlueService
- Add
Assistant
Let me open the file first, then make the edits.
Assistant
Let me scroll to the deleteTable method area:
Assistant
Now let me see the end of the file to add the record
Assistant
Now I'll add the
batchDeleteTablesmethod afterdeleteTable. Let me insert it:Assistant
Let me use the replace command instead
Assistant
Let me try using the edit command directly
Assistant
Let me try a simple edit to add the batchDeleteTables method after deleteTable:
Assistant
I see the edit replaced only one line. Let me replace line 172 with the full method body:
Assistant
Now I need to add the
BatchDeleteTableErrorrecord. Let me find whereUserDefinedFunctionPageis:Assistant
The file is open. Let me use grep to find the line number.
Assistant
Let me see around line 354
Assistant
Now let me add the BatchDeleteTableError record after the UserDefinedFunctionPage record:
Assistant
Let me fix the missing blank line between methods at line 187-188:
Assistant
I accidentally removed the
createPartitionmethod signature. Let me fix this:Assistant
Now let me add the
BatchDeleteTablecase toGlueJsonHandler.java. First let me open it:Assistant
Let me add the BatchDeleteTable case after DeleteTable:
Assistant
Let me verify the code compiles by running the Maven build:
Assistant
The maven wrapper seems to have an issue with HOME not being set. Let me set HOME and try again.
Assistant
Build succeeded. Let me now run the GlueService tests:
Assistant
Let me check the test results more explicitly:
Assistant
All 24 GlueService tests pass. Let me also run all Glue-related tests:
Assistant
Let me run the Glue tests by their full class names:
Assistant
All 152 tests pass. Let me verify the final state of my changes:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.