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/controller patterns, then reproduce the unsupported routing behavior through the most relevant tests or a local request. After implementing the service method and API dispatch/serialization, I’ll run focused and broader tests and inspect the final diff.
- Assistant
The relevant implementation is concentrated in
GlueServiceandGlueJsonHandler, with an existing focused service test suite. I’ll read the repository-specific instructions and these classes in full enough to understand storage keys, exception conventions, request validation, and JSON response casing before editing. - Assistant
The combined output was truncated, so I’ll inspect targeted sections separately: the Glue action switch, table CRUD methods and key helpers, plus the JSON controller’s error handling. I’ll also locate integration tests and reflection configuration to determine whether a new response record needs registration.
- Assistant
The current single-table delete is intentionally idempotent/silent, so batch deletion must independently test existence and collect per-item failures rather than call
getTable(which would abort the batch). The issue’s requested interface strongly suggests a nested result type. I’ll inspect model/Jackson naming conventions and existing batch result records, then check controller-level test patterns so the response is exactly{"Errors":[{"TableName":...,"ErrorDetail":...}]}and an all-success response still includes the AWSErrorsmember as an empty list. - Assistant
I’ll implement the narrow change in two layers:
GlueService.batchDeleteTables(databaseName, tableNames)validates the database, processes names in order, deletes existing tables (including partitions through the existing method), and returns one structuredEntityNotFoundExceptionerror per missing table without stopping later deletions.GlueJsonHandlerrecognizesBatchDeleteTable, parsesTablesToDelete, invokes the service, and explicitly maps record fields to AWS’s PascalCase JSON shape.
I’ll avoid changing
deleteTablesemantics, since other behavior may rely on its current idempotence. - Assistant
Python is unavailable in this environment, so no files were changed. I’ll apply the same two localized edits using the repository’s non-interactive
edittool after obtaining exact line numbers. - Assistant
I now have stable insertion points. I’ll add the service method after
deleteTable, the two public nested records alongside the existing page record, and the handler switch case immediately afterDeleteTable. - Assistant
The review caught one edit artifact: the existing
UserDefinedFunctionPagerecord was duplicated because earlier insertion shifted line numbers. I’ll remove the duplicate and restore normal spacing, then compile and run the focused Glue service tests. - Assistant
The source is now clean. Maven failed before compilation because this shell lacks
HOME; this is an environment issue rather than a code failure. I’ll rerun withHOME=/root, first the focused unit suite and then the existing Glue catalog integration suite, which exercises the same handler and storage stack. - Assistant
Both focused suites pass (24 unit tests and 10 Glue integration tests). Before the direct reproduction, I’m tightening the service result API: the requested public output type is only
BatchDeleteTableError, so it is clearer and more testable for that record to exposetableName,errorCode, anderrorMessagedirectly; the handler remains responsible for nesting code/message under AWS’s wire-levelErrorDetail. This avoids introducing an unnecessary second public result type. - Assistant
The record declaration changed, but two replacements were rejected because
replaceonly searched the currently displayed editor window; the resulting compile errors precisely identify the stale constructor and accessor calls. I’ll correct those exact lines directly and rerun compilation/tests. - Assistant
The focused suite passes again after the API simplification. I’ll now perform the issue’s exact protocol-level reproduction against a temporary Quarkus dev server: create a database and table, batch-delete one existing plus one missing table, inspect the returned JSON, and verify
GetTablefails afterward. The server will be stopped and all logs kept outside the repository. - Assistant
The direct reproduction now matches the reported AWS behavior:
BatchDeleteTablereturns HTTP 200 with oneEntityNotFoundExceptionerror formissing_table, while the existing table is deleted and a subsequentGetTablereturnsEntityNotFoundException.I’ll do a final diff/status review for accidental files, formatting issues, and scope. I’ll also verify the implementation’s edge behavior from the code: ordered multiple errors, empty errors on all-success, case-insensitive storage lookup, database validation, and partition cleanup through
deleteTable.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.