-
Notifications
You must be signed in to change notification settings - Fork 240
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QST]List<Struct<String, String>> is same as List<Map<String, String>> ? #1554
Comments
|
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 |
Probably. Implementing |
Closing as answered. Please reopen if there are further questions on this. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
What is your question?
I am tyring to implement my udf jsonToArray , and my cpu udf function is
I am ready to finish this udf in udf-example reference
stringWordCount
, but i am confused about return type , cpu udf returnList<Map<String, String>>
, whilecudf
only can make column typeList<Struct<String, String>
, i think they are same for me , right ? if i am wrong , please correct me.In addition , for
jsonToArray
udf , my thinking step iscudf_io::read_json
cudf::make_structs_column
andcudf::make_List_column
in cudfstd::unique_ptr<cudf::column>
please give me some advise if it's wrong, thanks a lot ! @jlowe
The text was updated successfully, but these errors were encountered: