Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Support for Custom Line Break Characters #27

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

cfbber
Copy link

@cfbber cfbber commented Dec 19, 2024

Background

During usage, it was discovered that the imported text only supported \n as the line break character. If the original data contained \n, the import process would fail.

Changes Made

  • Modified the default line break character.
  • Added support for custom line_delimiter through the header, allowing other characters to be used.
  • Added support for hexadecimal special characters such as \x01.

Testing

  • After modification, the changes have been running in the production environment for over two months, with more than 500 jobs executed successfully.

Notes

  • Due to limitations in Go, the line break character currently supports only single characters, such as |. For special characters, hexadecimal ASCII codes can be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant