That's right, if there are multiple output ports, the validation demands
that at least one is connected.

I actually think this validation is incorrect. It should be up to the
application developer to decide how the output of an operator is consumed.

It is similar to the return value of a function, you don't force the user
to assign or use it?

Thomas


On Tue, Sep 13, 2016 at 7:29 AM, Munagala Ramanath <[email protected]>
wrote:

> Yes, if you have ports at least one must be connected if there are no
> annotations on them.
>
> The code is in LogicalPlan.validate() -- checkout the allPortsOptional
> variable.
>
> Ram
>
> On Tue, Sep 13, 2016 at 3:17 AM, Tushar Gosavi <[email protected]>
> wrote:
>
>> Hi All,
>>
>> I have an input operator with one output port without any annotation.
>> When I launch the application using just this operator I get
>> ValidationException "At least one output port must be connected".  By
>> default connecting output ports are optional, or is it mandatory to
>> connect at least one output port of an operator, if there are no
>> annotation on them.
>>
>> Regards.
>> - Tushar.
>>
>
>

Reply via email to