chl-wxp opened a new issue, #10243:
URL: https://github.com/apache/seatunnel/issues/10243

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   I am synchronizing the pgsql database. There is a field type of `numeric(18, 
15)` and the stored value is `0`. When synchronizing to the local file `csv` or 
`text` file type, it is found that the value is `0E-15`, which is scientific 
notation. This is not the expected behavior.
   
   <img width="668" height="92" alt="Image" 
src="https://github.com/user-attachments/assets/bbe882e5-df1f-4ece-b929-84cc64189951";
 />
   
   <img width="572" height="93" alt="Image" 
src="https://github.com/user-attachments/assets/dd62ad31-dc60-428b-ac14-771617ab5f61";
 />
   
   ### SeaTunnel Version
   
   2.3.12
   
   ### SeaTunnel Config
   
   ```conf
   env {
   "job.mode"="BATCH"
   "job.name"="10"
   }
   source {
           Jdbc {
           url="jdbc:postgresql://127.0.0.1:5432/postgres"
           driver="org.postgresql.Driver"
           schema="public"
           user="postgres"
           password="123456"
           query="SELECT \"id\",\"time1\",\"time2\",\"column1\",\"column2\" 
FROM \"public\".\"db0212\" WHERE 1=1 "
           "fetch_size"="1000"
           "result_table_name"="E000003_source_1"
           }
   }
   transform {
   }
   sink {
           LocalFile {
               final_name="/Users/wangxuepeng/Desktop/test1/20251224.txt"
               path="/Users/wangxuepeng/Desktop/test1/20251224"
               source_table_name = "E000003_source_1"
               tmp_path="/Users/wangxuepeng/Desktop/test1/tmp"
               file_format_type="csv"
               field_delimiter=","
               row_delimiter="\n"
               sink_columns=["id","time1","time2","column1","column2"]
               compress_codec="none"
               overwrite_file="false"
               date_format="yyyy-MM-dd"
               datetime_format="yyyy-MM-dd HH:mm:ss"
               time_format="HH:mm:ss"
               encoding="UTF-8"
           }
   }
   ```
   
   ### Running Command
   
   ```shell
   use SeaTunnelEngineLocalExample
   ```
   
   ### Error Exception
   
   ```log
   No error reported
   ```
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   1.8
   
   ### Screenshots
   
   _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]

Reply via email to