You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Qian Xu (JIRA)" <ji...@apache.org> on 2014/10/30 05:17:34 UTC

[jira] [Commented] (SQOOP-1643) Sqoop2: Add Requires/Optional attribute support for input names

    [ https://issues.apache.org/jira/browse/SQOOP-1643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14189624#comment-14189624 ] 

Qian Xu commented on SQOOP-1643:
--------------------------------

In order not to bring too much complexity, I'd suggest use an annotation.

@Input(size = 255)
@Optional("A filtering clause of the query")
String filter;

In user interactive mode, user will see

{{> FILTER (A filtering clause of the query): }}

Note that localization should be considered.

> Sqoop2: Add Requires/Optional attribute support for input names 
> ----------------------------------------------------------------
>
>                 Key: SQOOP-1643
>                 URL: https://issues.apache.org/jira/browse/SQOOP-1643
>             Project: Sqoop
>          Issue Type: Sub-task
>            Reporter: Veena Basavaraj
>            Assignee: Veena Basavaraj
>             Fix For: 1.99.4
>
>
> The goal is to have much better user experience when user has to fill out the values for config inputs in the UI/ shell client.
> Today there is no way to tell if a input is required or optional. Also the help labels should be more clear in explaining what each of them mean and when their value is not required. We can even group the required ones first and then the optional ones latter
> Similar to 
> {code}
> /**
>    * Sqoop will ensure that sensitive information will not be easily
>    * accessible.
>    *
>    * @return True if field is sensitive
>    */
>   boolean sensitive() default false;
>   boolean required() default true;
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)