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 map the Glue implementation, request routing, and existing tests to identify the conventions for batch APIs and error serialization. Then I’ll reproduce the unsupported action through the most focused available test path, implement the service and action wiring, and run the relevant test suite.
- Assistant
The Glue code has a dedicated JSON handler and an injectable service with unit tests, while ECR provides a useful precedent for partial-success batch deletion. I’ll now inspect Glue’s action switch, table storage semantics, exception format, and test setup so the implementation matches existing behavior rather than introducing a parallel pattern.
- Assistant
The handler currently omits
BatchDeleteTable; individual deletion first callsgetTable, so it throws on a missing table. For batch semantics, each name must be processed independently, preserving successful deletes and converting onlyEntityNotFoundExceptionfailures into AWS’s nested error objects. I’ll inspect exact key normalization, storage deletion, model serialization conventions, and whether handler-level tests can directly verify the response. - Assistant
A key finding is that current
deleteTableis idempotent—it does not validate existence—so the batch method must check storage directly before deletion to distinguish missing names without changing existing single-delete behavior. The requested interface explicitly namesbatchDeleteTablesandBatchDeleteTableError; I’ll follow that contract and use response maps for exact AWS casing (Errors,TableName,ErrorDetail,ErrorCode,ErrorMessage), avoiding reliance on global record naming. Next I’ll check validation conventions (especially missing database behavior) and compile settings before editing. - Assistant
The schema-registry batch response already uses a flat service result (
errorCode,errorMessage) and constructs AWS’s nested wire shape in the handler. I’ll mirror that established design: aBatchDeleteTableError(tableName, errorCode, errorMessage)record, database validation once up front, case-insensitive table lookup via existing normalized keys, deletion (including partitions) for each existing table, and one ordered error per missing input with AWS’s exact message. I’ll edit only production files, as required. - Assistant
The environment lacks Python, so no files were changed. I’ll apply the same focused edits using the repository editor commands, then inspect the resulting diff immediately.
- Assistant
The service method is now in place and correctly preserves input error order while deleting existing tables through the shared cleanup path. I’ll add the public result record and handler dispatch/serialization, then compile before deeper behavioral checks.
- Assistant
I’ll now insert the action immediately beside
DeleteTableand place its helper with the other catalog handlers. The helper deliberately returns"Errors": []on complete success, matching the API response shape rather than an empty HTTP body. - Assistant
The diff review caught a duplicate method declaration introduced by line-number shifting during the editor operation; this would fail compilation. I’ll remove it and add the conventional blank line after the switch method, then run the focused Glue unit tests.
- Assistant
The source issue is fixed; the test invocation failed before Maven started because this shell has no
HOMEand the wrapper references it under strict mode. I’ll rerun with a temporaryHOMEenvironment variable (without altering the repository), then use existing compiled test infrastructure or a temporary external harness to verify the mixed existing/missing behavior and exact handler entity shape. - Assistant
The focused Glue suite passes. To verify the originally reported wire-level failure is actually resolved—not merely that the service compiles—I’ll locate the Glue controller protocol headers, launch the application locally, send create database/table and
BatchDeleteTableJSON requests directly, and confirm both the partial-error JSON and subsequentGetTablefailure. This uses no repository test changes. - Assistant
The first discovery command partially succeeded but ended nonzero because the configuration file path differs; it confirms Glue routes through the shared
X-Amz-Targetcontroller. I’ll inspect service registration to get the exact target prefix and default port, then launch with isolated temporary state to avoid touching persisted repository data. - Assistant
The exact prefix is
AWSGlue.and Glue uses JSON 1.1. I’ll start Quarkus on an alternate port with persistence disabled (or isolated if that is the available config), wait for health readiness, execute the four API calls, capture status/body, and stop the background process cleanly. - Assistant
Quarkus dev mode suspended itself waiting for terminal input after dependency resolution, so the app never became ready; no repository files were affected. I’ll terminate that stopped job and use the noninteractive packaged runner instead, which avoids dev-mode input and gives a reliable endpoint check.
- Assistant
The packaged application built successfully and is ready on port 4567 with in-memory storage. I’ll now execute the reproduction at protocol level, including the subsequent
GetTable, then stop the runner and inspect the final diff for edge cases or accidental artifacts.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.