LiJie20190102 opened a new issue, #10004:
URL: https://github.com/apache/seatunnel/issues/10004

   ### 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
   
   Here is my configuration file. On the sink side, I chose APPENDDATA for 
data_stave_made, but the data was not appended:
   
   transform {
       Sql {
           query="SELECT name AS name, hobby AS hobby, alia AS alia, age AS 
age, formatdatetime(createTime, 'yyyy-MM-dd') AS detail FROM source_table"
           "source_table_name"="source_table"
           "result_table_name"="sink_table"
       }
   }
   sink {
       FtpFile {
           "port "=2121
           "path "="/home/ftp_test/text"
           "file_format_type"=text
           "password "="*****"
           "source_table_name"="sink_table"
           encoding=UTF-8
           "custom_filename"=true
           "file_name_expression"="st1-syq.json"
           "user "="ftp_test"
           host="x.x.x.x"
           "connection_mode"="passive_local"
           "data_save_mode "="APPEND_DATA"
           "is_enable_transaction"=false
       }
   }
   source {
       FtpFile {
           schema {
               fields {
                   createTime=date
                   name=string
                   alia=string
                   age=int
                   hobby=string
               }
           }
           path="/home/ftp_test/json/st-source-offline.json"
           password="******"
           "file_format_type"=json
           port=2121
           "archive_compress_codec"=NONE
           host="x.x.x.x"
           "connection_mode"="passive_local"
           "result_table_name"="source_table"
           encoding=UTF-8
           user="ftp_test"
       }
   }
   env {
       "job.mode"=BATCH
       "execution.parallelism"="2"
   }
   
   
   ### SeaTunnel Version
   
   seatunnel 2.3.11
   
   
   ### SeaTunnel Config
   
   ```conf
   transform {
       Sql {
           query="SELECT name AS name, hobby AS hobby, alia AS alia, age AS 
age, formatdatetime(createTime, 'yyyy-MM-dd') AS detail FROM source_table"
           "source_table_name"="source_table"
           "result_table_name"="sink_table"
       }
   }
   sink {
       FtpFile {
           "port "=2121
           "path "="/home/ftp_test/text"
           "file_format_type"=text
           "password "="*****"
           "source_table_name"="sink_table"
           encoding=UTF-8
           "custom_filename"=true
           "file_name_expression"="st1-syq.json"
           "user "="ftp_test"
           host="x.x.x.x"
           "connection_mode"="passive_local"
           "data_save_mode "="APPEND_DATA"
           "is_enable_transaction"=false
       }
   }
   source {
       FtpFile {
           schema {
               fields {
                   createTime=date
                   name=string
                   alia=string
                   age=int
                   hobby=string
               }
           }
           path="/home/ftp_test/json/st-source-offline.json"
           password="******"
           "file_format_type"=json
           port=2121
           "archive_compress_codec"=NONE
           host="x.x.x.x"
           "connection_mode"="passive_local"
           "result_table_name"="source_table"
           encoding=UTF-8
           user="ftp_test"
       }
   }
   env {
       "job.mode"=BATCH
       "execution.parallelism"="2"
   }
   ```
   
   ### Running Command
   
   ```shell
   bin/start-seatunnel-spark-3-connector-v2.sh \
   --master local[4] \
   --deploy-mode client \
   --config ./config/ftp2ftp.config
   ```
   
   ### Error Exception
   
   ```log
   none
   ```
   
   ### Zeta or Flink or Spark Version
   
   spark 3.x
   
   ### Java or Scala Version
   
   java 1.8.0_202
   
   ### 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