-
What is your question?
I am ready to finish this udf in udf-example reference In addition , for
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
Beta Was this translation helpful? Give feedback.
-
Yes, these are the same types. libcudf does not have a map type, so it's implemented as a list of struct of key,value pairs. This shouldn't be a problem in practice for the UDF because Spark knows the expected type being returned from the UDF (this type is derived from the CPU implementation), and therefore the RAPIDS Accelerator knows the expected Spark result type as well. The plugin checks that the returned
I don't think this will work. If I understand the intent of the After constructing the |
Beta Was this translation helpful? Give feedback.
-
Probably. Implementing |
Beta Was this translation helpful? Give feedback.
-
Closing as answered. Please reopen if there are further questions on this. |
Beta Was this translation helpful? Give feedback.
Yes, these are the same types. libcudf does not have a map type, so it's implemented as a list of struct of key,value pairs. This shouldn't be a problem in practice for the UDF because Spark knows the expected type being returned from the UDF (this type is derived from the CPU implementation), and therefore the RAPIDS Accelerator knows the expected Spark result type as well. The plugin checks that the returned
ColumnVector
can be converted to the expected Spark type, and Spark'sMapType
is implemented in libcudf as aLIST
ofSTRUCT
of twoSTRING