You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "xumingxiang (via GitHub)" <gi...@apache.org> on 2024/03/13 15:02:41 UTC
[I] [Bug] VARIANT 子列不存在时报 [INTERNAL_ERROR]Not found field_name, [doris]
xumingxiang opened a new issue, #32203:
URL: https://github.com/apache/doris/issues/32203
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues.
### Version
2.1.0
### What's Wrong?
使用 VARIANT 字段存储 map 数据,查询时如果字段没有所查询的字段,会报异常。比如我下面这个表的数据

其中最后一列Tags字段是 VARIANT 类型,tags中的键值对是由业务无脑写入,无法提前预设,可能为空,可能不一致。
使用 `SELECT * from LogChunk_1 where Tags['tag_key1'] is not null and CAST(tags['tag_key1'] as text) MATCH_ANY 'tag_val1' order by `Time` DESC limit 10 ` 查询便会报错 `SQL 错误 [1105] [HY000]: errCode = 2, detailMessage = (172.16.56.137)[CANCELLED]failed to initialize storage reader. tablet=17136, res=[INTERNAL_ERROR]Not found field_name, field_name:Tags.tag_key1, schema:[Thread(8), Tags(9), Source(5), tags.tag_key1(-1), Title(6), Level(3), Time(2), CreateDate(1), Message(7), IP(4), AppId(0)]`
### What You Expected?
希望查询时能过滤掉没有对应子列的数据,而不是直接报错
### How to Reproduce?
_No response_
### Anything Else?
_No response_
### 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] [Bug] VARIANT 子列不存在时报 [INTERNAL_ERROR]Not found field_name, [doris]
Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on issue #32203:
URL: https://github.com/apache/doris/issues/32203#issuecomment-2025525653
可以在https://ask.selectdb.com 提问,问题会更快解决
--
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] [Bug] VARIANT 子列不存在时报 [INTERNAL_ERROR]Not found field_name, [doris]
Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on issue #32203:
URL: https://github.com/apache/doris/issues/32203#issuecomment-2025337728
I will fix it
--
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] [Bug] VARIANT 子列不存在时报 [INTERNAL_ERROR]Not found field_name, [doris]
Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on issue #32203:
URL: https://github.com/apache/doris/issues/32203#issuecomment-2025705858
This PR will help to fix this issue: https://github.com/apache/doris/pull/32999
--
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] [Bug] VARIANT 子列不存在时报 [INTERNAL_ERROR]Not found field_name, [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #32203:
URL: https://github.com/apache/doris/issues/32203#issuecomment-3288991986
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] [Bug] VARIANT 子列不存在时报 [INTERNAL_ERROR]Not found field_name, [doris]
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman closed issue #32203: [Bug] VARIANT 子列不存在时报 [INTERNAL_ERROR]Not found field_name,
URL: https://github.com/apache/doris/issues/32203
--
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] [Bug] VARIANT 子列不存在时报 [INTERNAL_ERROR]Not found field_name, [doris]
Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on issue #32203:
URL: https://github.com/apache/doris/issues/32203#issuecomment-2025562881
先CAST(tags['tag_key1'] as text) -> CAST(Tags['tag_key1'] as text) 试试, 是个bug
--
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