grundprinzip commented on code in PR #81:
URL: https://github.com/apache/spark-connect-go/pull/81#discussion_r1808174053
##########
spark/sql/functions/generated.go:
##########
@@ -3073,9 +3073,14 @@ func BitmapOrAgg(col column.Column) column.Column {
return
column.NewColumn(column.NewUnresolvedFunctionWithColumns("bitmap_or_agg", col))
}
-// Ignore UDF: call_udf: (udfName: str, *cols: 'ColumnOrName') ->
pyspark.sql.connect.column.Column
+// Ignore UDF: call_udf: (udfName: str, *cols: 'ColumnOrName') ->
sql.connect.column.Column
-// Ignore UDT: unwrap_udt: (col: 'ColumnOrName') ->
pyspark.sql.connect.column.Column
+// UnwrapUdt: (col: 'ColumnOrName') -> sql.connect.column.Column
+//
+// Unwraps the UDT so you can work with the internal data structure embedded
in the type
+func UnwrapUdt(col column.Column) column.Column {
+ return
column.NewColumn(column.NewUnresolvedFunctionWithColumns("unwrap_udt", col))
+}
Review Comment:
This file is generated using a script, can you please move this
implementation into a dedicated file so that it doesn't get overridden once we
regenerate the code?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]