seatunnel icon indicating copy to clipboard operation
seatunnel copied to clipboard

[Bug] [Sink] [LocalFile] Produces txt file no matter what file_format is set

Open archibald-nice opened this issue 3 years ago • 2 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

What happened

Local Job always produced txt file no matter what kind 'file_format' is set.

BTW! there is no problem when I use version 2.3.0.(I switch to 2.3.1 because I want to compress file)

SeaTunnel Version

2.3.1-release

SeaTunnel Config

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

./bin/seatunnel.sh --config ./config/batch-demo.conf -e local

Error Exception

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

archibald-nice avatar Apr 12 '23 03:04 archibald-nice

file_format has update to file_format_type

TyrantLucifer avatar Apr 12 '23 06:04 TyrantLucifer

@TyrantLucifer Ok, everything went well. Thank you so much for your help. However, I noticed that the Official-Doc may need to be updated

archibald-nice avatar Apr 12 '23 08:04 archibald-nice