Alex, can you create a JIRA (https://issues.apache.org/jira/browse/APEXCORE/
)?

On Tue, Sep 13, 2016 at 8:52 AM, McCullough, Alex <
alex.mccullo...@capitalone.com> wrote:

> I think it’s a little confusing too that the default value for the
> optional attribute on the output ports is true, but there is a requirement
> implemented by the validator that negates this unless you explicitly set it
> to on all your output ports (to the default no less).
>
>
>
>
>
> Thanks,
>
> Alex
>
>
>
> *From: *Thomas Weise <t...@apache.org>
> *Reply-To: *"users@apex.apache.org" <users@apex.apache.org>
> *Date: *Tuesday, September 13, 2016 at 11:10 AM
> *To: *"users@apex.apache.org" <users@apex.apache.org>
> *Subject: *Re: Optional output ports.
>
>
>
> 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 <r...@datatorrent.com>
> 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 <tus...@datatorrent.com>
> 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.
>
>
>
>
>
> ------------------------------
>
> The information contained in this e-mail is confidential and/or
> proprietary to Capital One and/or its affiliates and may only be used
> solely in performance of work or services for Capital One. The information
> transmitted herewith is intended only for use by the individual or entity
> to which it is addressed. If the reader of this message is not the intended
> recipient, you are hereby notified that any review, retransmission,
> dissemination, distribution, copying or other use of, or taking of any
> action in reliance upon this information is strictly prohibited. If you
> have received this communication in error, please contact the sender and
> delete the material from your computer.
>

Reply via email to