DolphinDB server version : 2.00.9.1 2023.02.20 ; linux64
python==3.7
DDB package version : 1.30.21.1
Problem Description:
I want to use ddb.tableAppender() to write a Python dataframe to a DolphinDB table. A column in the table is of type DECIMAL. But after uploading, the data is changed.

According to the Python API for DolphinDB (5.4.2), when uploading tables containing objects of
Python decimal.Decimal(), you must ensure that all values in the columns of DECIMAL type have the same decimal digits. Otherwise, it will return a value with the same digits as the first row of value. Your first row of data has four decimal digits, so error will occur when you upload data with 3 decimal digits.To solve the problem, you can try the following script: