Skip to content

Commit

Permalink
field can terminated by string in load data (#1484)
Browse files Browse the repository at this point in the history
* split dump file

* field can terminated by string in load data statement
  • Loading branch information
PanternBao authored and yanhuqing666 committed Nov 8, 2019
1 parent 9a0b761 commit 79942b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
<dependency>
<groupId>com.univocity</groupId>
<artifactId>univocity-parsers</artifactId>
<version>2.2.1</version>
<version>2.8.3</version>
<type>jar</type>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ public void end(byte packId) {
settings.setMaxColumns(DEFAULT_MAX_COLUMNS);
settings.setMaxCharsPerColumn(systemConfig.getMaxCharsPerColumn());
settings.getFormat().setLineSeparator(loadData.getLineTerminatedBy());
settings.getFormat().setDelimiter(loadData.getFieldTerminatedBy().charAt(0));
settings.getFormat().setDelimiter(loadData.getFieldTerminatedBy());
settings.getFormat().setComment('\0');
if (loadData.getEnclose() != null) {
settings.getFormat().setQuote(loadData.getEnclose().charAt(0));
Expand Down

0 comments on commit 79942b8

Please sign in to comment.