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:
{ "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.aws: [ERROR]: An error occurred (InvalidAction) when calling the BatchDeleteTable operation: Action BatchDeleteTable is not supportedReproduction
endpoint=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_tableEnvironment
- Floci version / image tag:
floci/floci:1.5.22 - Java SDK version (if applicable): AWS CLI
- How you're running Floci (Docker / native /
mvn quarkus:dev): Docker
Interface
Type: Function Name: batchDeleteTables Path: src/main/java/io/github/hectorvent/floci/services/glue/GlueService.java Input: String databaseName, List tableNames Output: List<GlueService.BatchDeleteTableError> Description: Deletes multiple tables by name within a database, skipping and reporting errors for any tables that are not found. Use this to process the
BatchDeleteTableAWS Glue API action. - Floci version / image tag:
Assistant
Let me start by exploring the repository structure to understand the codebase.
Assistant
Let me explore the Glue service file mentioned in the issue.
Assistant
Let me look at the GlueJsonHandler to see how actions are wired.
Assistant
Let me check the existing tests for GlueService to understand the testing patterns.
Assistant
Let me also look at the GlueCatalogSchemaBindingIntegrationTest:
Assistant
Let me look at the StorageBackend interface to understand the data flow.
Assistant
Let me look at how existing JSON responses are structured in other AWS JSON handlers to understand the response format.
Assistant
Now I have a good understanding. Let me check more existing code to understand the storage and the AwsJsonController.
Assistant
Let me look at the AwsJson11Controller to see how the Glue service is wired.
Assistant
Let me also look at the InMemoryStorage to understand how keys are stored.
Assistant
Now I have enough context. Let me first write a script to reproduce the error.
Assistant
Let me check what's imported in GlueJsonHandler:
Assistant
Let me look at the GlueServiceTest to see if there's any pattern that helps me write tests.
Assistant
Now I have a clear understanding. Let me make my plan concrete and implement the changes:
Assistant
Now let me implement the changes. First, I'll add the
BatchDeleteTableErrorrecord and thebatchDeleteTablesmethod toGlueService.Assistant
Let me make the edits now.
Assistant
Let me use a different approach by using the
replacetool with a heredoc.Assistant
Let me use a Python script to make the edits more reliably.
Assistant
Let me use perl instead.
Assistant
Let me verify the change to GlueService.java:
Assistant
Now let me update the GlueJsonHandler to handle the BatchDeleteTable action.
Assistant
Let me verify the change to GlueJsonHandler.java:
Assistant
Now let me check that the code compiles. First, let me try to compile only the GlueService and GlueJsonHandler files to verify there are no syntax errors.
Assistant
The code compiles. Now let me run the existing tests to make sure they still pass.
Assistant
All 24 existing GlueServiceTest tests pass. Now let me create a temporary test script to verify the BatchDeleteTable functionality.
Assistant
Let me run my test using the compiled classes:
Assistant
All my tests are passing. Let me see the rest of the output.
Assistant
Now let me clean up the temporary test file and test the HTTP integration:
Assistant
Now let me also test the full HTTP path via the integration test infrastructure. Let me write a temporary integration test to verify this end-to-end.
Assistant
Let me look at the Quarkus integration test approach to do a proper integration test:
Assistant
Let me also run the full Glue test suite to ensure I haven't broken anything else:
Assistant
All 34 existing Glue tests pass. Now let me also write a temporary integration test to verify the BatchDeleteTable action works through the HTTP layer.
Assistant
All 5 integration tests pass. Now let me remove the temporary integration test as I shouldn't add new tests to the repository.
Assistant
Let me also run the original Glue tests again to ensure nothing is broken:
Assistant
Let me also run the schema registry tests to ensure they still work:
Assistant
All 142 Glue tests pass. Let me also verify the changes by looking at the current state of the files:
Assistant
Let me also do a final comprehensive test to make sure all the changes work together correctly. Let me also verify there's no issue with the order of imports in the GlueService:
Assistant
Let me also run the Athena tests since they use the GlueService:
Assistant
Let me run all tests in the services package to ensure I haven't broken anything:
Assistant
All 190 Glue tests pass. Let me do a final review of the changes:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.