{"record":{"id":"0cc1db95bee0089b","repo":"apache/seatunnel","slug":"not-implemented-0cc1db","errorCode":null,"errorMessage":"not implemented","messagePattern":"not implemented","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"seatunnel-connectors-v2/connector-milvus/src/main/java/org/apache/seatunnel/connectors/seatunnel/milvus/catalog/MilvusCatalog.java","lineNumber":185,"sourceCode":"        R<Boolean> response =\n                this.client.hasCollection(\n                        HasCollectionParam.newBuilder()\n                                .withDatabaseName(tablePath.getDatabaseName())\n                                .withCollectionName(tablePath.getTableName())\n                                .build());\n        if (response.getData() != null) {\n            return response.getData();\n        }\n        throw new MilvusConnectorException(\n                MilvusConnectionErrorCode.SERVER_RESPONSE_FAILED,\n                response.getMessage(),\n                response.getException());\n    }\n\n    @Override\n    public CatalogTable getTable(TablePath tablePath)\n            throws CatalogException, TableNotExistException {\n        throw new RuntimeException(\"not implemented\");\n    }\n\n    @Override\n    public void createTable(TablePath tablePath, CatalogTable catalogTable, boolean ignoreIfExists)\n            throws TableAlreadyExistException, DatabaseNotExistException, CatalogException {\n        checkNotNull(tablePath, \"Table path cannot be null\");\n        if (!databaseExists(tablePath.getDatabaseName())) {\n            throw new DatabaseNotExistException(catalogName, tablePath.getDatabaseName());\n        }\n        if (tableExists(tablePath)) {\n            if (ignoreIfExists) {\n                return;\n            }\n            throw new TableAlreadyExistException(catalogName, tablePath);\n        }\n\n        checkNotNull(catalogTable, \"catalogTable must not be null\");\n        TableSchema tableSchema = catalogTable.getTableSchema();","sourceCodeStart":167,"sourceCodeEnd":203,"githubUrl":"https://github.com/apache/seatunnel/blob/cf67b549a7a6c35fa0beb12d83c62892427ea919/seatunnel-connectors-v2/connector-milvus/src/main/java/org/apache/seatunnel/connectors/seatunnel/milvus/catalog/MilvusCatalog.java#L167-L203","documentation":"MilvusCatalog.getTable(TablePath) is stubbed: it unconditionally throws RuntimeException('not implemented'). Milvus is a vector database without a relational table schema exposed through this catalog, so reading back a CatalogTable is unsupported in this implementation.","triggerScenarios":"Any call to getTable on a MilvusCatalog instance — e.g. framework code doing table existence/schema checks, schema evolution pipelines, or tools that resolve existing table metadata before writing.","commonSituations":"Users or automated jobs attempting to read schema from Milvus via the catalog API; pipeline generators that call getTable to diff schemas; code paths assuming every catalog implements getTable.","solutions":["Avoid getTable against Milvus; define schemas explicitly in the job config or via createTable.","Use Milvus SDK describe-collection calls directly if schema introspection is required.","Contribute an implementation of getTable (describing the Milvus collection and mapping fields to CatalogTable) if needed.","Check for alternate APIs (e.g. listTables/exists checks) that the Milvus catalog does implement."],"exampleFix":"null","handlingStrategy":"try-catch","validationCode":"// avoid the call entirely; if you must probe:\nboolean tableExists = milvusCatalog.isExistsDataCollection(tablePath); // use implemented APIs only","typeGuard":null,"tryCatchPattern":"try {\n    CatalogTable t = milvusCatalog.getTable(tablePath);\n} catch (RuntimeException e) {\n    if (\"not implemented\".equals(e.getMessage())) {\n        // fall back to explicit schema from job config\n    } else { throw e; }\n}","preventionTips":["Never rely on getTable for Milvus catalogs; define schemas in the job config","Check which Catalog methods the Milvus implementation supports before building generic tooling"],"tags":["milvus","catalog","not-implemented","stub"],"backgroundTag":"method-not-implemented","analyzedSha":"cf67b549a7a6c35fa0beb12d83c62892427ea919","analyzedAt":"2026-09-10T21:44:55.265Z","contentChangedAt":"2026-09-10T21:44:55.265Z","schemaVersion":2},"datasetVersion":"2026-09-14T16:17:12.679Z"}