davidzollo commented on issue #8388:
URL: https://github.com/apache/seatunnel/issues/8388#issuecomment-2774116393

   PostgreSQL batch to FTP
   
   ---
   
   env { 
     "job.mode" = "BATCH"
      parallelism = 4
   } 
   
   source { 
     Jdbc { 
         driver = "org.postgresql.Driver" 
         url = "jdbc:postgresql://xxxx:5432/demo" 
         user = "xxxx" 
         password = "xxxx" 
         query = "select * from demo.\"test_read\".\"order_job_20250101\"" 
         table_path = "demo.test_read.job_20250101" 
         result_table_name = "table0" 
     } 
   }  
   
   transform { 
     Sql { 
         source_table_name  = "table0" 
         result_table_name  = "table1" 
         table_transform  =[ 
           { 
             tablePath = "demo.test_read.job_20250101" 
             query = "select * from table0" 
           }  
         ]  
     } 
   }  
   
   sink { 
     FtpFile  { 
         host = "xxxx" 
         port = "21" 
         user = "xxxx" 
         password = "xxxx" 
         tmp_path  = "/data/tmp"
         path  = "/data/20250101"
         source_table_name = "table1" 
         file_format_type = "text" 
         custom_filename = true 
         file_name_expression = "order_job_20250101" 
         data_save_mode = "APPEND_DATA" 
         field_delimiter   = "," 
         encoding    = "UTF-8" 
         connection_mode = "PASSIVE_LOCAL_DATA_CONNECTION_MODE" 
         is_enable_transaction = false 
         compress_codec = "NONE" 
         single_file_mode = true 
         create_empty_file_when_no_data = true 
     } 
   }  
   


-- 
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: commits-unsubscr...@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to