ad1happy2go commented on issue #8617:
URL: https://github.com/apache/hudi/issues/8617#issuecomment-1531300433
@willforevercn Yes, MapType is supported for string as key only. Above code
works with following snippet -
```def get_tags():
count = random.randint(0, 5)
tags = {}
for i in range(count):
key = tag_ids_all[random.randint(0, len(tag_ids_all) - 1)]
value = 1.0
tags[str(key)] = value
return tags
tags_udf = udf(get_tags, MapType(StringType(), FloatType()))```
--
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]