Skip to content

Instantly share code, notes, and snippets.

@masayuki038
Created November 9, 2019 12:35
Show Gist options
  • Save masayuki038/329764b34c6fa7d12d917074a5e895eb to your computer and use it in GitHub Desktop.
Save masayuki038/329764b34c6fa7d12d917074a5e895eb to your computer and use it in GitHub Desktop.
@Override
public Result implement(EnumerableRelImplementor implementor, Prefer pref) {
PhysType physType = PhysTypeImpl.of(implementor.getTypeFactory(), getRowType(), pref.preferArray());
return implementor.result(physType, Blocks.toBlock(
Expressions.call(
this.table.getExpression(AvroTable.class),
"project",
implementor.getRootExpression(),
Expressions.constant(this.fields)
)
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment