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 look at GlueJsonHandler.java to see how DeleteTable is handled and how actions get routed.
Assistant
Now let's implement the
batchDeleteTablesmethod in GlueService.java.Assistant
No python3. Let's use the
edittool directly.Assistant
Need a blank line before
public void createPartition.Assistant
Now let's add the handler for BatchDeleteTable in GlueJsonHandler.java.
Assistant
Now let's add the
handleBatchDeleteTablemethod. Let's place it nearhandleCreateUserDefinedFunction.Assistant
Now let's build the project to check for compile errors.
Assistant
Compiles cleanly. Now let's write a quick reproduction test using existing unit test infra, or run existing GlueServiceTest and GlueJsonHandler-related tests.
Assistant
Test passed (existing tests all green). Now let's write a temp reproduce script to test end-to-end via HTTP if possible, or just directly test batchDeleteTables via a quick throwaway test class compiled ad hoc.
Assistant
All existing tests pass. Now let's write a temp test to exercise the new code path directly, mimicking existing test patterns.
Assistant
StorageFactory is a class not an interface. Let's check its InMemoryStorageFactory usage in existing test.
Assistant
Test passed with no errors. Now let's remove the temp test file and also run full test suite to confirm nothing broke.
Assistant
Let's check surefire report summary for all glue tests.
Assistant
All Glue tests pass. Now let's double check git status to confirm the temp test file was removed and only intended changes remain.
Assistant
Good, only the two intended files are changed. Let's also check if docs mention the list of supported Glue actions, to update documentation for completeness (not strictly required, but good practice).
Assistant
Now let's also check if there's a CHANGELOG.md convention to add an entry.
Assistant
Now let's confirm the compile still works with all changes and rerun the Glue tests once more for a final check.
Assistant
Let's check final diff.
Assistant
This looks complete. Let's finally check the awscli-style test file for glue-catalog to see naming conventions, ensuring not necessary to add there (per instructions not to add tests).
Assistant
That's fine; not adding tests, per instructions. Let's do a final review of complete GlueService.java changes for correctness.
Assistant
This looks correct. Now let's verify the checklist items.
Assistant
Everything looks clean. Let's review the checklist:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.