beliefer commented on code in PR #38973: URL: https://github.com/apache/spark/pull/38973#discussion_r1042865399
########## connector/connect/common/src/main/protobuf/spark/connect/relations.proto: ########## @@ -570,3 +571,21 @@ message Hint { // (Optional) Hint parameters. repeated Expression.Literal parameters = 3; } + +// Unpivot a DataFrame from wide format to long format, optionally leaving identifier columns set. +message Melt { + // (Required) The input relation. + Relation input = 1; + + // (Required) Id columns. + repeated Expression ids = 2; Review Comment: The ids in `Dataset.melt` is `ids: Array[Column]`, I'm not sure it's appropriate. @amaliujia @zhengruifeng @HyukjinKwon ########## connector/connect/common/src/main/protobuf/spark/connect/relations.proto: ########## @@ -570,3 +571,21 @@ message Hint { // (Optional) Hint parameters. repeated Expression.Literal parameters = 3; } + +// Unpivot a DataFrame from wide format to long format, optionally leaving identifier columns set. +message Melt { + // (Required) The input relation. + Relation input = 1; + + // (Required) Id columns. + repeated Expression ids = 2; Review Comment: The `ids` in `Dataset.melt` is `ids: Array[Column]`, I'm not sure it's appropriate. @amaliujia @zhengruifeng @HyukjinKwon -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org