From a9b8b5593bbaf2d0cca49a2e4b13af5bc233579e Mon Sep 17 00:00:00 2001 From: Tobias Hafner Date: Wed, 20 Sep 2023 10:31:27 +0200 Subject: [PATCH] cleanup --- .../relational/RelationalMetaRetriever.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/proto-interface/src/main/java/org/polypheny/db/protointerface/relational/RelationalMetaRetriever.java b/plugins/proto-interface/src/main/java/org/polypheny/db/protointerface/relational/RelationalMetaRetriever.java index 63da7377b1..2cfcc5ad4e 100644 --- a/plugins/proto-interface/src/main/java/org/polypheny/db/protointerface/relational/RelationalMetaRetriever.java +++ b/plugins/proto-interface/src/main/java/org/polypheny/db/protointerface/relational/RelationalMetaRetriever.java @@ -168,15 +168,16 @@ private static TypeMeta retrieveTypeMeta( AlgDataType algDataType ) { private static AlgDataType retrieveAlgDataType( PolyImplementation polyImplementation ) { switch ( polyImplementation.getKind() ) { - case INSERT, DELETE, UPDATE, EXPLAIN -> { + case INSERT: + case DELETE: + case UPDATE: + case EXPLAIN: // FIXME: getValidatedNodeType is wrong for DML Kind kind = polyImplementation.getKind(); JavaTypeFactory typeFactory = polyImplementation.getStatement().getTransaction().getTypeFactory(); return AlgOptUtil.createDmlRowType( kind, typeFactory ); - } - default -> { + default: return polyImplementation.getRowType(); - } } }