You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "ITxin97 (via GitHub)" <gi...@apache.org> on 2024/10/16 08:52:22 UTC
[I] [Bug] select cast(1.123 as decimal(4,1))=1.1;返回0 [doris]
ITxin97 opened a new issue, #41965:
URL: https://github.com/apache/doris/issues/41965
### 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
version3.0
### What's Wrong?
MySQL[(none)]>select cast(1.123 as decimal(4,1))=1.1;
0
row in set(0.01 sec)
MySQL[(none)]>select cast(1.123 as decimal(4,1));
1.1
row in set(0.82 sec)
### What You Expected?
select cast(1.123 as decimal(4,1))=1.1;应该返回1,这里返回0
### 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] select cast(1.123 as decimal(4,1))=1.1;返回0 [doris]
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman closed issue #41965: [Bug] select cast(1.123 as decimal(4,1))=1.1;返回0
URL: https://github.com/apache/doris/issues/41965
--
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] select cast(1.123 as decimal(4,1))=1.1;返回0 [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #41965:
URL: https://github.com/apache/doris/issues/41965#issuecomment-3283046544
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] select cast(1.123 as decimal(4,1))=1.1;返回0 [doris]
Posted by "koarz (via GitHub)" <gi...@apache.org>.
koarz commented on issue #41965:
URL: https://github.com/apache/doris/issues/41965#issuecomment-2423621128
it's looks like already fixed on newest version
```sql
mysql> select cast(1.123 as decimal(4,1))=1.1;
+-----------------------------------------------------------------+
| (cast(1.123 as DECIMALV3(4, 1)) = cast(1.1 as DECIMALV3(4, 1))) |
+-----------------------------------------------------------------+
| 1 |
+-----------------------------------------------------------------+
1 row in set (0.01 sec)
```
--
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