spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <>
Subject [jira] [Assigned] (SPARK-22381) Add StringParam that supports valid options
Date Sat, 28 Oct 2017 19:34:03 GMT


Apache Spark reassigned SPARK-22381:

    Assignee:     (was: Apache Spark)

> Add StringParam that supports valid options
> -------------------------------------------
>                 Key: SPARK-22381
>                 URL:
>             Project: Spark
>          Issue Type: New Feature
>          Components: ML
>    Affects Versions: 2.2.0
>            Reporter: yuhao yang
>            Priority: Minor
> During test with, I found it might
be a good idea to include the possible options in a StringParam.
> A StringParam extends Param[String] and allow user to specify the valid options in Array[String]
(case insensitive).
> So far it can help achieve three goals:
> 1. Make the StringParam aware of its possible options and support native validations.
> 2. StringParam can list the supported options when user input wrong value.
> 3. allow automatic unit test coverage for case-insensitive String param
> and IMO it also decrease the code redundancy.
> The StringParam is designed to be completely compatible with existing Param[String],
just adding the extra logic for supporting options, which means we don't need to convert all
Param[String] to StringParam until we feel comfortable to do that.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message