You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "archibald-nice (via GitHub)" <gi...@apache.org> on 2023/04/12 03:03:30 UTC

[GitHub] [incubator-seatunnel] archibald-nice opened a new issue, #4553: [Bug] [Sink] [LocalFile] Produces txt file no matter what file_format is set

archibald-nice opened a new issue, #4553:
URL: https://github.com/apache/incubator-seatunnel/issues/4553

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
   
   
   ### What happened
   
   Local Job always produced txt file no matter what kind 'file_format' is set.
   
   ### SeaTunnel Version
   
   2.3.1-release
   
   ### SeaTunnel Config
   
   ```conf
   env {
       execution.parallelism = 1
       job.mode = "BATCH"
   }
   
   source {
       Jdbc {
           url = "jdbc:oracle:thin:@xx.xx.xx.xx:1521:wft?serverTimezone=Asia/Shanghai"
           driver = "oracle.jdbc.driver.OracleDriver"
           connection_check_timeout_sec = 100
           user = "test"
           password = "test"
           query = "SELECT * FROM TEST"
       }
   }
   
   
   sink {
       LocalFile {
           path = "/tmp/test_data/"
           custom_filename = true
           file_name_expression = "${transactionId}_${now}"
           filename_time_format = "yyyy-MM-dd"
           file_format = parquet\orc\json\csv
       }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/seatunnel.sh --config ./config/batch-demo.conf -e local
   ```
   
   
   ### Error Exception
   
   ```log
   No Error logging. Just unable to get expected file type.
   ```
   
   
   ### Flink or Spark Version
   
   No.
   
   ### Java or Scala Version
   
   jdk-1.8
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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: commits-unsubscribe@seatunnel.apache.org.apache.org

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


[GitHub] [incubator-seatunnel] TyrantLucifer commented on issue #4553: [Bug] [Sink] [LocalFile] Produces txt file no matter what file_format is set

Posted by "TyrantLucifer (via GitHub)" <gi...@apache.org>.
TyrantLucifer commented on issue #4553:
URL: https://github.com/apache/incubator-seatunnel/issues/4553#issuecomment-1504714056

   `file_format` has update to `file_format_type`


-- 
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-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] archibald-nice commented on issue #4553: [Bug] [Sink] [LocalFile] Produces txt file no matter what file_format is set

Posted by "archibald-nice (via GitHub)" <gi...@apache.org>.
archibald-nice commented on issue #4553:
URL: https://github.com/apache/incubator-seatunnel/issues/4553#issuecomment-1504842259

   @TyrantLucifer 
   Ok, everything went well. Thank you so much for your help. However, I noticed that the [Official-Doc](https://seatunnel.apache.org/docs/2.3.1/connector-v2/sink/LocalFile#file_format-string) may need to be updated


-- 
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-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] archibald-nice closed issue #4553: [Bug] [Sink] [LocalFile] Produces txt file no matter what file_format is set

Posted by "archibald-nice (via GitHub)" <gi...@apache.org>.
archibald-nice closed issue #4553: [Bug] [Sink] [LocalFile] Produces txt file no matter what file_format is set
URL: https://github.com/apache/incubator-seatunnel/issues/4553


-- 
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-unsubscribe@seatunnel.apache.org

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