Skip to content

Commit

Permalink
fix: reduce ChargeurCSV complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolife999 committed Oct 3, 2023
1 parent d3f87be commit 97d78c5
Show file tree
Hide file tree
Showing 4 changed files with 415 additions and 300 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public String getFullName(String schema) {
}

public static String getFullName(String schema, String providedTableName) {
return schema + SQL.DOT.getSqlCode() + providedTableName;
return providedTableName.contains(SQL.DOT.getSqlCode())? providedTableName : schema + SQL.DOT.getSqlCode() + providedTableName;
}

public ColumnEnum col(ColumnEnum e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@ private Delimiters() {

public static final String HEADERS_DELIMITER = ",";
public static final String DEFAULT_CSV_DELIMITER = ";";

public static final String RENAME_SUFFIX= "$new$";
public static final String PARTITION_NUMBER_PLACEHOLDER = "#pn#";


}
Loading

0 comments on commit 97d78c5

Please sign in to comment.