ibzib commented on a change in pull request #15886:
URL: https://github.com/apache/beam/pull/15886#discussion_r744033060
##########
File path:
sdks/java/extensions/sql/src/test/java/org/apache/beam/sdk/extensions/sql/impl/rel/BeamCalcRelTest.java
##########
@@ -213,17 +212,14 @@ public void testSingleFieldAccess() throws
IllegalAccessException {
ParDo.MultiOutput<Row, Row> pardo =
(ParDo.MultiOutput<Row, Row>) nodeGetter.producer.getTransform();
- DoFnSignature sig = DoFnSignatures.getSignature(pardo.getFn().getClass());
+ PCollection<Row> input =
+ (PCollection<Row>)
nodeGetter.producer.getInputs().values().iterator().next();
Review comment:
It may be better to use `Iterables.getOnlyElement` instead. (likewise
for other tests)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]