-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Description
Describe the bug
The result of decimal agg is error when stream load.
To Reproduce
Steps to reproduce the behavior:
- make a file with two column "1 123456789012345678.123456789" "1 123456789012345678.123456789"
- create a table with a decimal column which is a sum agg column
CREATE TABLEsum_decimal(tinyint_keytinyint(4) NOT NULL COMMENT "",decimal_most_valuedecimal(27, 9) SUM NOT NULL COMMENT "" ) ENGINE=OLAP AGGREGATE KEY(tinyint_key) DISTRIBUTED BY HASH(tinyint_key) BUCKETS 1 PROPERTIES ( "storage_type" = "COLUMN" ); - insert file into table using stream load
- show result of stream load
+-------------+------------------------------+
| tinyint_key | decimal_most_value |
+-------------+------------------------------+
| 1 | 246913578024691355.999999999 |
+-------------+------------------------------+
Expected behavior
the result of load is following:
+-------------+------------------------------+
| tinyint_key | decimal_most_value |
+-------------+------------------------------+
| 1 | 246913578024691356.246913578 |
+-------------+------------------------------+
Screenshots
The old broker load and mini load have the correct result while stream load and new broker load have the incorrect result. So the problem must be happened in agg of olap engine instead of agg of dpp sink.
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
No labels