You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/09/20 13:24:40 UTC

[GitHub] [flink] hequn8128 commented on a change in pull request #9707: [FLINK-14015][python] Introduces PythonScalarFunctionOperator to execute Python user-defined functions

hequn8128 commented on a change in pull request #9707: [FLINK-14015][python] Introduces PythonScalarFunctionOperator to execute Python user-defined functions
URL: https://github.com/apache/flink/pull/9707#discussion_r326461309
 
 

 ##########
 File path: flink-core/src/main/java/org/apache/flink/types/Row.java
 ##########
 @@ -167,4 +167,34 @@ public static Row project(Row row, int[] fields) {
 		}
 		return newRow;
 	}
+
+	/**
+	 * Creates a new Row which fields are copied from the other rows.
+	 * This method does not perform a deep copy.
+	 *
+	 * @param first The first row being copied.
+	 * @param remainings The other rows being copied.
+	 * @return the joined new Row
+	 */
+	public static Row join(Row first, Row... remainings) {
 
 Review comment:
   Add tests for this method in `RowTest`

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services