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 source directory to understand the codebase structure.
Assistant
Let me explore the source directory and find the GlueService.
Assistant
Now let me look at the GlueJsonHandler to understand how actions are dispatched.
Assistant
Let me look at the existing models and test files for the glue service.
Assistant
Let me look at the existing integration test for Glue.
Assistant
Let me check for existing batch operations to follow the pattern.
Assistant
Let me look at how DynamoDB handles batch operations since they are also JSON 1.1 protocol.
Assistant
Let me look at the documentation for the glue service to understand the current setup.
Assistant
Let me look at the test runner setup to see how tests work.
Assistant
Now let me check the InMemoryStorage class for understanding storage patterns.
Assistant
Let me also check how deleteTable is currently being used and look at the StorageDescriptor.
Assistant
Let me first run the existing tests to make sure the baseline is solid.
Assistant
Now I have enough context. Let me create a script to reproduce the issue first.
Assistant
Let me first start the emulator to reproduce the issue.
Assistant
Now I have enough context. Let me make the changes:
Step 1: Update
GlueService.javato addBatchDeleteTableErrorrecord andbatchDeleteTablesmethod.Assistant
Now let me add the
batchDeleteTablesmethod toGlueService.java:Assistant
Let me use the
replacecommand to make the changes.Assistant
Let me try the heredoc form.
Assistant
Now let me add the
BatchDeleteTableErrorrecord next to theUserDefinedFunctionPagerecord.Assistant
Let me verify the changes:
Assistant
Now let me update the
GlueJsonHandler.javato add theBatchDeleteTableaction handler.Assistant
Now let me add the
handleBatchDeleteTablemethod. Let me find a good place to add it.Assistant
Now let me verify the changes are valid Java code:
Assistant
Let me verify the GlueService changes:
Assistant
Now let me build to check for any compilation issues:
Assistant
Let me clean and rebuild to make sure my changes compile:
Assistant
The compilation succeeded. Now let me run the existing tests to make sure I haven't broken anything:
Assistant
Now let me also run all the glue tests to be sure:
Assistant
All 152 Glue tests pass. Now let me start the Floci server and reproduce the issue to verify the fix works.
Assistant
The server is up. Now let me reproduce the issue:
Assistant
Excellent! The fix works correctly. Let me also verify the existing table was deleted:
Assistant
Let me test some additional edge cases:
Assistant
Let me also verify with a direct curl request to test empty list and other edge cases:
Assistant
All edge cases work correctly. Now let me update the documentation:
Assistant
Let me stop the dev server and run all the glue tests to verify the changes:
Assistant
Let me wait a bit and run the tests now:
Assistant
Let me clean up any temporary files:
Assistant
Now let me also verify the full set of Glue-related tests passes after my changes:
Assistant
Let me also run a broader test suite to make sure nothing else is affected:
Assistant
Let me wait a bit and check the test progress:
Assistant
The test process is no longer running (defunct). It probably finished but we lost the output. Let me look at the full test log.
Assistant
The full test suite got interrupted. The Glue-specific tests are all passing. Let me ensure the glue tests still pass and look at the diff:
Assistant
All Glue tests pass. Let me view the final diff:
Assistant
All the changes look good. Let me also check that the final code is well-formed by viewing the entire changes:
Assistant
The compile is successful. Let me do a final verification by running the complete Glue test suite once more.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.