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/12/27 09:36:50 UTC

[GitHub] [doris] HappenLee opened a new issue, #15403: [Bug] decimalv3 create view query error

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

   ### 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
   
   master
   
   ### What's Wrong?
   
   ```
   CREATE  TABLE `test5` (
     `a` decimalv3(38,18),
     `b` decimalv3(38,18)
   ) ENGINE=OLAP
   DUPLICATE KEY(`a`)
   COMMENT 'OLAP'
   DISTRIBUTED BY HASH(`a`) BUCKETS 1
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1"
   );
   insert into test5 values(10090000,100000),(50,2),(1009,0.5),(0.1,16979);
   create view test5_v (amout) as select cast(a*b as decimalv3(38,18)) from test5; 
   ```
   
   ```
   select * from test5_v;
   
   ERROR 1105 (HY000): errCode = 2, detailMessage = Precision of decimal must between 1 and 27. Precision was set to: 38.
   ```
   
   ### What You Expected?
   
   query ok;
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] 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


[GitHub] [doris] morningman closed issue #15403: [Bug] decimalv3 create view query error

Posted by GitBox <gi...@apache.org>.
morningman closed issue #15403: [Bug] decimalv3 create view query error
URL: https://github.com/apache/doris/issues/15403


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