You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "Altman-yao (via GitHub)" <gi...@apache.org> on 2024/07/23 08:17:15 UTC
[I] [Feature] STRUCT类型与字符串类型可以支持灵活转换,并且建议合并STRUCT和JSON两种类型,COLLECT_LIST支持STRUCT类型 [doris]
Altman-yao opened a new issue, #38248:
URL: https://github.com/apache/doris/issues/38248
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues.
### Description
spark中支持STRUCT类型,并且可以通过函数from_json来将字符串转为STRUCT,以及可以使用to_json将STRUCT转为字符串,用起来非常的方便,但是doris里面没有这种功能而且额外增加了JSON类型,json里面的函数又只能对json或varchar类型使用,不能给STRUCT类型使用。一旦有一个字段是STRUCT类型,我居然没法对他使用任何函数,我觉得这是很难受的事情。尤其我需要使用COLLECT_LIST(<STRUCT>)的时候,会报错不支持。我不理解为什么会不支持,
### Use case
设备应用列表,需要转成 设备id , array<struct<name:string,pkg:string,intall_time:string>>类型,但是我没法构造出这种数据类型。因为不支持使用collect_list<struct>方式。
### Related issues
无
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
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: commits-unsubscribe@doris.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Feature] STRUCT类型与字符串类型可以支持灵活转换,并且建议合并STRUCT和JSON两种类型,COLLECT_LIST支持STRUCT类型 [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #38248:
URL: https://github.com/apache/doris/issues/38248#issuecomment-3283051096
We're closing this issue because it hasn't been updated in a while.
If you'd like to revive this issue, please reopen it and feel free a maintainer to remove the Stale tag!
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Feature] STRUCT类型与字符串类型可以支持灵活转换,并且建议合并STRUCT和JSON两种类型,COLLECT_LIST支持STRUCT类型 [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #38248: [Feature] STRUCT类型与字符串类型可以支持灵活转换,并且建议合并STRUCT和JSON两种类型,COLLECT_LIST支持STRUCT类型
URL: https://github.com/apache/doris/issues/38248
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org