Skip to content

Commit

Permalink
chore: a coupleof tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Fox committed Oct 28, 2019
1 parent bef9b95 commit 3f9fe9a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public class TableFunctionApplier {
public TableFunctionApplier(final KsqlTableFunction tableFunction,
final ExpressionMetadata expressionMetadata) {
this.tableFunction = Objects.requireNonNull(tableFunction);
this.expressionMetadata = expressionMetadata;
this.expressionMetadata = Objects.requireNonNull(expressionMetadata);
}

@SuppressWarnings("unchecked")
List<Object> apply(final GenericRow row) {
final Object val = expressionMetadata.evaluate(row);
return tableFunction.flatMap(val);
final Object unexplodedVal = expressionMetadata.evaluate(row);
return tableFunction.flatMap(unexplodedVal);
}
}

0 comments on commit 3f9fe9a

Please sign in to comment.