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
I'll start by exploring the repository structure to understand the codebase.
- Assistant
Let me look at the GlueService.java file specifically.
- Assistant
Let me look at the GlueService.java file to understand the existing service implementation.
- Assistant
Now let me look at the GlueJsonHandler.java to see how API actions are routed:
- Assistant
Now let me look at the existing test file for GlueService:
- Assistant
Let me also check how the AwsErrorResponseWithItem class is used and look at the existing patterns:
- Assistant
Now I have a good understanding of the codebase. Let me create a plan:
- Add a
BatchDeleteTableErrorrecord andbatchDeleteTablesmethod toGlueService - Add the
BatchDeleteTablecase toGlueJsonHandler
Let me start implementing. First, I'll add the
BatchDeleteTableErrorrecord andbatchDeleteTablesmethod toGlueService: - Add a
- Assistant
Now I'll add the
BatchDeleteTableErrorrecord andbatchDeleteTablesmethod toGlueService. Let me find the right location: - Assistant
Let me add the
BatchDeleteTableErrorrecord andbatchDeleteTablesmethod toGlueService: - Assistant
Let me see the lines around the deleteTable method.
- Assistant
Let me also check how the tableStore works to understand how to check if a table exists:
- Assistant
Now I understand the pattern. Let me implement the changes. I'll add the
batchDeleteTablesmethod toGlueServicefirst: - Assistant
Now let me add the
batchDeleteTablesmethod andBatchDeleteTableErrorrecord toGlueService: - Assistant
Let me use the edit command directly:
- Assistant
Now I'll add the
batchDeleteTablesmethod afterdeleteTable: - Assistant
I need to fix the spacing between the methods. Let me also add the
BatchDeleteTableErrorrecord: - Assistant
I see the
createPartitionmethod signature got mangled. Let me fix that: - Assistant
Good. Now let me add the
BatchDeleteTableErrorrecord. Let me find theUserDefinedFunctionPagerecord: - Assistant
Now let me add the
BatchDeleteTableErrorrecord after theUserDefinedFunctionPagerecord: - Assistant
Now let me add the
BatchDeleteTablehandler toGlueJsonHandler.java: - Assistant
Now let me add the
BatchDeleteTablecase to the switch statement inGlueJsonHandler. I'll add it after theDeleteTablecase: - Assistant
Good! Now let me verify the code compiles by running the existing tests:
- Assistant
It's a Maven project. Let me run the existing tests:
- Assistant
All 24 existing tests pass. Let me now verify the implementation by writing a quick temporary test script:
- Assistant
The code compiles. Let me also verify the full GlueService.java is correct:
- Assistant
Let me also verify the GlueJsonHandler:
- Assistant
Now let me run all the existing tests to make sure everything still works:
- Assistant
All 24 existing tests still pass. Let me verify my changes with
git diff: - Assistant
The diff looks clean and correct. Let me verify the complete modified files are syntactically correct:
- Assistant
Build is successful. Let me run all Glue-related tests one final time:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.