yunfengzhou-hub commented on a change in pull request #71:
URL: https://github.com/apache/flink-ml/pull/71#discussion_r841020736



##########
File path: 
flink-ml-lib/src/main/java/org/apache/flink/ml/common/param/HasOutputCols.java
##########
@@ -19,15 +19,13 @@
 package org.apache.flink.ml.common.param;
 
 import org.apache.flink.ml.param.Param;
-import org.apache.flink.ml.param.ParamValidators;
 import org.apache.flink.ml.param.StringArrayParam;
 import org.apache.flink.ml.param.WithParams;
 
 /** Interface for the shared outputCols param. */
 public interface HasOutputCols<T> extends WithParams<T> {
     Param<String[]> OUTPUT_COLS =
-            new StringArrayParam(
-                    "outputCols", "Output column names.", null, 
ParamValidators.nonEmptyArray());
+            new StringArrayParam("outputCols", "Output column names.", new 
String[0]);

Review comment:
       Because the current implementation uses `HasOutputCols` to specify the 
column name of the generated tables. As we should allow users not to config 
this parameter, we have to make the default value of `HasOutputCols` a valid 
but empty value. 
   
   It does change the semantic of `HasOutputCols`. I'll move this parameter to 
the `HasColNames` parameter mentioned in previous comments and keep 
`HasOutputCols` as it has been.




-- 
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]


Reply via email to