Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Hafner committed Sep 20, 2023
1 parent 80dc9e5 commit a9b8b55
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}

Expand Down

0 comments on commit a9b8b55

Please sign in to comment.