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 explore the repository structure to understand the codebase.
Assistant
Now let me find where glue actions are dispatched and where the "not supported" error comes from.
Assistant
Now I understand the structure. Let me add the
batchDeleteTablesmethod and aBatchDeleteTableErrorrecord toGlueService. Let me open the file at thedeleteTablemethod.Assistant
Now let me add the
batchDeleteTablesmethod afterdeleteTable:Assistant
Now let me add the
BatchDeleteTableErrorrecord near theUserDefinedFunctionPagerecord:Assistant
Now let me add the handler case in
GlueJsonHandler. Let me add theBatchDeleteTablecase afterDeleteTable:Assistant
The edit seems to have failed because the heredoc inside the edit. Let me use the simpler replace approach instead.
Assistant
Now let me add the
handleBatchDeleteTablemethod. Let me add it afterhandleDeleteUserDefinedFunction:Assistant
The replace tool searches in the "displayed lines" (current window). I need to scroll to that location first. Let me open the file at line 172.
Assistant
Now I need to add a
readStringListhelper method. Let me check existing helper methods and add it nearreadMaxResults/readNextToken:Assistant
Now let me build the project to ensure it compiles:
Assistant
Compilation succeeded. Let me check for existing glue tests and run them.
Assistant
Let me run the existing GlueService tests to confirm nothing broke, and write a quick temporary test for the new method.
Assistant
All existing tests pass. Now let me write a temporary test to verify the new
batchDeleteTablesbehavior matches the issue's expected AWS behavior.Assistant
Let me add a temporary JUnit test in the test directory and run it via Maven, then remove it.
Assistant
The temporary test confirms the behavior. Now let me clean up the temp files.
Assistant
Let me verify the final diff and do a final compile check.
Assistant
Compilation succeeds with no errors. Let me review the final diff once more to confirm correctness.
Assistant
Let me run the broader glue test suite to ensure nothing else broke.
Assistant
The pattern didn't match. The integration tests probably use a profile. Let me try running the GlueServiceTest and the schema registry tests directly by name.
Assistant
All 190 glue tests pass. Let me check the compatibility bats test to see if there's an existing test related to BatchDeleteTable that I should be aware of (without modifying it).
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.