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 look at the GlueJsonHandler to understand how actions are dispatched.
Assistant
Let me look at the test file and the AwsException model to understand patterns.
Assistant
Let me look at the existing GlueServiceTest to understand test patterns.
Assistant
Let me look at how the JSON response is built and check the compatibility tests for glue.
Assistant
Now I have a good understanding. Let me implement the
batchDeleteTablesmethod inGlueServiceand theBatchDeleteTablecase inGlueJsonHandler.First, let me add the method and record to
GlueService.java:Assistant
Now let me add the
batchDeleteTablesmethod afterdeleteTable:Assistant
There's a duplicate
createPartitionline. Let me fix it:Assistant
Still duplicated. The edit replaced lines 191-192 with my content but it still kept the duplicate. Let me just use sed to remove the duplicate line 192.
Assistant
Now let me add the
BatchDeleteTablecase toGlueJsonHandler:Assistant
Now let me add the
BatchDeleteTablecase after theDeleteTablecase:Assistant
Duplicate again. Let me remove the duplicate line 96:
Assistant
Now let me add the
handleBatchDeleteTablemethod. Let me add it afterhandleDeleteUserDefinedFunction:Assistant
Duplicate
handleCreateRegistryagain. Let me remove the duplicate line 204:Assistant
Let me clean up the extra blank line:
Assistant
Now let me check the imports in GlueJsonHandler for
ArrayList,LinkedHashMap,List,Map- they are already imported. Let me verify the existing imports:Assistant
All imports are present. Now let me compile the project to make sure everything builds:
Assistant
Compilation succeeded. Now let me write a quick test to verify behavior. Let me look at how the existing test setup works and write a temporary test:
Assistant
Let me create a temporary test to verify the behavior:
Assistant
Wait, the InMemoryStorageFactory in the test extends StorageFactory with super(null, null). Let me check the actual one used in GlueServiceTest to match.
Assistant
Let me fix my temp test's factory signature to match:
Assistant
Let me check the actual test result - did it pass? Let me look for BUILD SUCCESS/FAILURE.
Assistant
Both tests pass. Now let me verify the full Glue test suite still passes, then remove the temp test:
Assistant
Let me also run the Glue integration tests to ensure nothing broke:
Assistant
Let me check if there's any other handler that needs updating (e.g., a query/XML protocol handler for Glue):
Assistant
Glue only has the JSON handler. Let me review the final diff:
Assistant
The changes look complete. Let me do a final compile check to ensure everything is clean:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.