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
I'll start by exploring the repository structure to understand the codebase and then find the relevant files for implementing
BatchDeleteTable.Assistant
Let me explore the repository.
Assistant
Let me look at the rest of the file to find existing batch methods and the inner classes.
Assistant
Now let me look at the getTable and tableKey methods, and the inner record area. Let me view lines around getTable.
Assistant
Now let me look at the GlueJsonHandler to understand how actions are dispatched.
Assistant
Let me see the default case and how unsupported actions are handled.
Assistant
Let me examine the model classes to understand JSON serialization conventions.
Assistant
Let me look at the existing record and StorageBackend.
Assistant
Let me check how SchemaId record is defined for JSON serialization.
Assistant
Let me check the StorageBackend interface.
Assistant
Let me look at existing Glue tests to understand conventions.
Assistant
Now I have a clear understanding. Let me implement the
batchDeleteTablesmethod in GlueService. First, let me add the method afterdeleteTable.Assistant
Now let me add the
BatchDeleteTableErrorrecord. Let me add it near theUserDefinedFunctionPagerecord.Assistant
Now let me add the
BatchDeleteTableErrorrecord after theUserDefinedFunctionPagerecord. I need to check the imports first.Assistant
Now let me add the
BatchDeleteTableErrorrecord after theUserDefinedFunctionPagerecord.Assistant
Now let me add the
BatchDeleteTablecase in GlueJsonHandler. Let me add the import and the case.Assistant
Now let me add the BatchDeleteTable case after the DeleteTable case. Let me open the DeleteTable case.
Assistant
Now I'll add the
BatchDeleteTablecase after theDeleteTablecase.Assistant
Let me verify how the GlueJsonHandler is wired and how the action is dispatched.
Assistant
Let me check the AwsJson11Controller to understand the action extraction.
Assistant
Now let me build the project to ensure compilation. Let me check the build system.
Assistant
Offline mode fails. Let me try without -o (online).
Assistant
Compilation succeeded. Now let me run the existing Glue service tests to ensure nothing broke.
Assistant
Let me check the test result summary.
Assistant
Let me look at the GlueServiceTest setup to write a temporary verification test.
Assistant
Let me create a temporary test to verify the behavior including JSON serialization.
Assistant
The InMemoryStorageFactory is a private inner class in GlueServiceTest. Let me look at how it's defined so I can replicate it.
Assistant
The append added it after the closing brace. I need to insert it before the final closing brace. Let me check the file structure. The original file ended with
}for the class. I appended the inner class after that, which means there are two closing braces now. Let me view the end of the file.Assistant
Let me rewrite the file cleanly to fix the structure.
Assistant
The JSON output matches the AWS expected format exactly. All 4 tests pass. Let me also verify there's a handler/integration test pattern I should be aware of, and check if there are existing integration tests for glue actions.
Assistant
Let me look at an existing integration test to verify the handler dispatch works end-to-end via a temporary test.
Assistant
Let me create a temporary integration test to verify the end-to-end
BatchDeleteTableaction dispatch and response.Assistant
Let me check the error response format to confirm the field name for the error code.
Assistant
Good, the error response uses
__typeandmessage. Let me check the JSON_TYPE_BY_QUERY_CODE map to confirm "EntityNotFoundException" maps to itself. Let me look.Assistant
Now let me run the temporary integration test.
Assistant
The integration test passes end-to-end. Now let me clean up the temporary test files before submitting.
Assistant
Now let me run the broader Glue test suite to ensure nothing is broken.
Assistant
All 75 Glue tests pass. Let me review the final diff to confirm everything is clean.
Assistant
Let me check the CHANGELOG to see if there's a convention to document new actions.
Assistant
I'll add a CHANGELOG entry under the Unreleased section following the existing convention.
Assistant
I had a stray apostrophe. Let me open the file first.
Assistant
Let me check if there's a docs file listing supported Glue actions that should be updated.
Assistant
Let me do a final compilation check and verify git status is clean of temporary files.
Assistant
Everything compiles and the git status shows only the intended changes (no leftover temp test files). Let me run the full Glue test suite one final time to confirm.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.