public RelOptTable copyOf(RelOptTable table) { if (table instanceof RelOptTableWrapper) { final RelOptTableWrapper wrapper = (RelOptTableWrapper) table; return new RelOptTableWrapper( wrapper.getQualifiedName(), copyOf(wrapper.getRelOptTable()) ); } else if (table instanceof RelOptTableImpl) { final RelOptTableImpl impl = (RelOptTableImpl) table; return impl.copy(copyOf(impl.getRowType())); // this won't copy the RelOptSchema } notSupported(table); return table; }
final RelOptTable relOptTable = this.copy(staticRowType); return relOptTable.toRel(context);
final RelOptTable relOptTable = this.copy(staticRowType); return relOptTable.toRel(context);