You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/09/29 12:16:20 UTC
[GitHub] [doris] nextdreamblue opened a new pull request, #13065: [fix][Decimal] retain Decimal trailing zero when select on fe
nextdreamblue opened a new pull request, #13065:
URL: https://github.com/apache/doris/pull/13065
# Proposed changes
Issue Number: close #13050
## Problem summary
只在fe上执行select时,DECIMAL类型的数据末尾的0会自动都删除,而不是保留
before:
MySQL [test]> select cast('135.000' as DECIMAL(10,3));
+----------------------------------+
| CAST('135.000' AS DECIMAL(10,3)) |
+----------------------------------+
| 135 |
+----------------------------------+
1 row in set (0.01 sec)
now:
MySQL [test]> select cast('135.000' as DECIMAL(10,3));
+----------------------------------+
| CAST('135.000' AS DECIMAL(10,3)) |
+----------------------------------+
| 135.000 |
+----------------------------------+
1 row in set (0.01 sec)
## Checklist(Required)
1. Does it affect the original behavior:
- [x] Yes
- [ ] No
- [ ] I don't know
2. Has unit tests been added:
- [ ] Yes
- [ ] No
- [x] No Need
3. Has document been added or modified:
- [ ] Yes
- [ ] No
- [x] No Need
4. Does it need to update dependencies:
- [ ] Yes
- [x] No
5. Are there any changes that cannot be rolled back:
- [ ] Yes (If Yes, please explain WHY)
- [x] No
## Further comments
If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
--
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
[GitHub] [doris] github-actions[bot] commented on pull request #13065: [Bug](Decimal) retain Decimal trailing zero when select on fe
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #13065:
URL: https://github.com/apache/doris/pull/13065#issuecomment-1263316330
PR approved by anyone and no changes requested.
--
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
[GitHub] [doris] nextdreamblue commented on pull request #13065: [Bug](Decimal) retain Decimal trailing zero when select on fe
Posted by GitBox <gi...@apache.org>.
nextdreamblue commented on PR #13065:
URL: https://github.com/apache/doris/pull/13065#issuecomment-1263186283
> Some results are wrong in tests. Could you fix it also?
ok, let me 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
[GitHub] [doris] github-actions[bot] commented on pull request #13065: [Bug](Decimal) retain Decimal trailing zero when select on fe
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #13065:
URL: https://github.com/apache/doris/pull/13065#issuecomment-1263316280
PR approved by at least one committer and no changes requested.
--
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