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 first inspect the repository structure and the existing Glue service/HTTP action dispatch, then locate analogous batch-delete implementations and relevant tests before reproducing the unsupported action.
- Assistant
The project is a Maven/Java application and the working tree is clean. I’ll read the repository guidance and inspect all Glue-related source and tests, including action naming conventions and response serialization.
- Assistant
Glue currently has only service and JSON handler plus a service test, so the fix should be narrow: add service-level batch deletion/error records and route
BatchDeleteTablethrough the existing AWS JSON handler. I’ll now inspect table CRUD, request helpers, exception details, and test construction to ensure exact AWS-compatible casing and messages. - Assistant
The existing single-table
deleteTableis intentionally idempotent and does not validate existence; batch behavior therefore must explicitly test each table while continuing after misses. I’ll inspect the handler’s dispatch and table methods, service record declarations, storage API semantics, and the complete test setup before editing. - Assistant
The requested interface explicitly names
batchDeleteTables(String, List<String>)returningList<GlueService.BatchDeleteTableError>. Before implementing, I’ll verify Jackson’s naming configuration (records may serialize astableNameunless the project applies UpperCamelCase) and inspect handler/integration test patterns so the response is exactlyErrors[].TableName/ErrorDetail.ErrorCode/ErrorMessage. - Assistant
No global UpperCamelCase mapper is evident; existing Glue models likely carry explicit AWS field annotations. I’ll inspect those annotations and the Glue controller routing, then implement records with explicit
@JsonPropertynames to keep both the required typed service interface and correct wire shape. I’ll also account for database existence: AWS batch operations should fail the whole request for a missing database, while missing tables become per-item errors. - Assistant
I’ll implement sequential batch processing in the service: validate the database once, normalize keys consistently, delete each existing table (including its partitions), and append an AWS-shaped
EntityNotFoundExceptiononly for each missing table. The handler will parseTablesToDeleteand return anErrorslist. Explicit Jackson annotations will guarantee protocol casing, and reflection registration will keep native-image serialization safe. - Assistant
Python is unavailable in the environment, so no files were changed. I’ll apply the same narrow edits with the repository’s
edit/replacecommands instead, starting from exact line locations. - Assistant
The insertion points are stable. I’ll now add the two imports, service method and response records, then add the dispatch case immediately after
DeleteTable. - Assistant
The handler edit applied, but the editor refused the two service replacements because those blocks were outside the displayed window; only imports were added, so the project currently would not compile. I’ll use line-based edits at the confirmed service locations, then review the resulting sections and import ordering.
- Assistant
I’ll insert the service method at line 174 and replace the record declaration at line 341 with the two annotated error records followed by the original page record.
- Assistant
The method logic is in place, but the editor collapsed the separating blank line; I’ll fix that while adding the records. I’ll also reorder the Quarkus import before Jakarta to follow the project’s import grouping.
- Assistant
The code sections are now structurally correct and
git diff --checkpasses. The import reorder was again blocked by the editor viewport, so I’ll fix those three lines directly, then compile and run the focused Glue unit suite to expose any style, serialization, or behavioral issues. - Assistant
The Maven wrapper failed before Maven started because this shell lacks
HOME; the source edit itself succeeded. I’ll rerun withHOME=/root, first executing the focused Glue service test class. - Assistant
The focused Glue suite passes all 24 tests and compilation succeeds. To reproduce the reported wire behavior without adding tests (per the instruction not to modify/add tests), I’ll package the application, launch it locally, and issue raw AWS JSON 1.1 requests for create database/table, batch delete, and subsequent get table. This validates dispatch, response casing, and deletion persistence end-to-end.
- Assistant
Packaging succeeds. I’ll launch the built runner in the background, wait for its configured port, then send the four Glue target requests. I’ll capture HTTP status/body and terminate the process afterward.
- Assistant
The server is ready on port 4566. I’ll confirm the Glue target prefix in the shared controller, then execute the reproduction with
curland print each response. - Assistant
The target is
AWSGlue.<Action>. I’ll now perform the exact mixed existing/missing request and verify the deleted table returns anEntityNotFoundException. - Assistant
The end-to-end reproduction now matches the issue exactly: HTTP 200 with one correctly cased
Errorsentry formissing_table, whileexisting_tableis removed and a subsequentGetTablereturnsEntityNotFoundException. I’ll now run all Glue-related tests (service and schema registry integration/unit tests), then inspect the final diff for accidental changes and evaluate edge cases such as missing databases, all-success batches, duplicate names, normalization, and partition cleanup. - Assistant
All 190 Glue/schema-related tests pass. Edge-case review: database validation occurs before mutations; an all-existing batch returns an empty error list; missing entries are accumulated without aborting later deletions; key normalization matches all existing table CRUD; duplicate names are processed sequentially (the second occurrence is correctly missing after the first deletion); and deletion reuses
deleteTable, so partitions are removed too. I’ll perform the final diff/status/process review and check for formatting or generated artifacts before submission.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.