You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "15767714253 (via GitHub)" <gi...@apache.org> on 2024/03/11 12:49:10 UTC

[I] [Bug] Variant Automatic type inference error [doris]

15767714253 opened a new issue, #32070:
URL: https://github.com/apache/doris/issues/32070

   ### 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
   
   ### What's Wrong?
   
   我使用了variant这种数据类型,新增一条数据,'{
   	"create_time": "2024-03-10 09:31:12",
   	"device_inst_code": "c_18_1_4_8_52",
   	"rval": "0.200000",
   	"soc": "99.500000",
   	"soh": "99.400000",
   	"temperature": "21.500000",
   	"time": "1710034260801",
   	"voltage": "3.341000"
   }' 
   一开始desc  自动推断为text;
   当我再插入一条数据为:
   '{
   	"create_time": "2024-03-10 09:31:12",
   	"device_inst_code": "c_18_1_4_8_52",
   	"rval": 0.200000,
   	"soc": 99.500000,
   	"soh": 99.400000,
   	"temperature": 21.500000,
   	"time": 1710034260801,
   	"voltage": 3.341000
   }'
   值类型不同
   类型冲突,自动类型推断为json
   此时无论我删除掉不同类型的数据,或者删除后再插入一条相同类型的数据,自动类型推断还是json
   ![image](https://github.com/apache/doris/assets/37656068/2703fcc1-e2a6-4c44-8db2-6f043e6d6083)
   
   
   ### What You Expected?
   
   是不是Bug,如果不是该如何规避,如果是,希望有大佬修复
   
   ### 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 Automatic type inference error [doris]

Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on issue #32070:
URL: https://github.com/apache/doris/issues/32070#issuecomment-2025525806

   可以在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 Automatic type inference error [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #32070:
URL: https://github.com/apache/doris/issues/32070#issuecomment-3288992039

   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 Automatic type inference error [doris]

Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on issue #32070:
URL: https://github.com/apache/doris/issues/32070#issuecomment-2025444771

   当前只有truncate表,或者写新的分区,这类列才会消失


-- 
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 Automatic type inference error [doris]

Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on issue #32070:
URL: https://github.com/apache/doris/issues/32070#issuecomment-2025333202

   当前是符合预期的,删除后自动去掉类型信息这个我们正在讨论怎么做


-- 
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 Automatic type inference error [doris]

Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman closed issue #32070: [Bug] Variant  Automatic type inference error
URL: https://github.com/apache/doris/issues/32070


-- 
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