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

   ### 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, lts-1.2
   
   ### What's Wrong?
   
   Decimal v3 precision loss in the multi catalog module.
   
   ### What You Expected?
   
   Decimal v3 precision not loss in the multi catalog module.
   
   ### How to Reproduce?
   
   ### 1. Create hive table and import data.
   ```
   CREATE TABLE my_table2 (
     my_int INT,
     my_decimal DECIMAL(38,12)
   ) STORED AS ORC;
   ```
   
   ```
   INSERT INTO my_table2 (my_int, my_decimal)
   VALUES (123,10.123456789876);
   ```
   
![image](https://user-images.githubusercontent.com/1736049/233111832-c267c8f6-ad4c-47b3-8343-f43b9268e066.png)
   
   ### 2. Create Doris table and import data:
   
   ```
   CREATE TABLE my_table2 (
     my_int INT,
     my_decimal DECIMALV3(38,12)
   ) 
   DISTRIBUTED BY HASH(`my_int`) BUCKETS 1 
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1");
   ```
   
   ### 3. Load hive orc files to Doris table by broker loader.
   
   ```
   LOAD LABEL deciamlv3test
       (
           DATA 
INFILE("hdfs://172.16.10.13:4007/usr/hive/warehouse/lqftest.db/my_table2/*")
           INTO TABLE my_table2
           FORMAT AS "orc"
       )
   WITH BROKER 'broker'
       (
           "username" = "hadoop",
           "password" = "" 
       )
   PROPERTIES
       (
           "timeout" = "3600"
       );
   ```
   
   result:
   
![image](https://user-images.githubusercontent.com/1736049/233111987-3c434296-75dd-4524-bcfb-bce019ed584e.png)
   
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to