alibaba / alibaba/DataX

TxtFileWriter输出的文件名有问题

Open
#2,278 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
17.4k
Forks
5.7k
PR merge metrics
No merged PRs in 30d

Description

问题1:写入插件会给文件名添加一个随机后缀,应该添加在文件名后面,即<文件名+随机后缀>.csv,但是实际添加的效果是<文件名>.csv+随机后缀

![Image](https://github.com/user-attachments/assets/586ec7ba-1b0f-46fe-b59d-282e97edb609)
问题2:fileFormat已经指定了输出格式,理论上文件名没有加后缀应该会自动带上,比如文件名设置output,应该会自动输出output.csv,但现在输出结果只有文件名,不会自动追加后缀

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the TxtFileWriter plugin and trace how it builds output filenames from the configured name and fileFormat. Reproduce both cases described: a name with an extension and a name such as output. Done means the random suffix follows the base filename and the configured format supplies the missing .csv extension.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
data-engineering
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.