Skip to content

Commit

Permalink
Changes from review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-rogers committed Mar 21, 2022
1 parent 4a63622 commit 82e1055
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public TextFormatConfig(
@JsonProperty("extractHeader") Boolean extractHeader) {
this.extensions = extensions == null ?
ImmutableList.of() : ImmutableList.copyOf(extensions);
this.lineDelimiter = lineDelimiter == null ? "\n" : lineDelimiter;
this.lineDelimiter = Strings.isNullOrEmpty(lineDelimiter) ? "\n" : lineDelimiter;
this.fieldDelimiter = Strings.isNullOrEmpty(fieldDelimiter) ? ',' : fieldDelimiter.charAt(0);
this.quote = Strings.isNullOrEmpty(quote) ? '"' : quote.charAt(0);
this.escape = Strings.isNullOrEmpty(escape) ? '"' : escape.charAt(0);
Expand All @@ -70,10 +70,6 @@ public TextFormatConfig(
this.extractHeader = extractHeader == null ? false : extractHeader;
}

public TextFormatConfig() {
this(null, null, null, null, null, null, null, null);
}

public List<String> getExtensions() { return extensions; }
public String getLineDelimiter() { return lineDelimiter; }
public char getFieldDelimiter() { return fieldDelimiter; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ public ManagedReader newReader(FileSchemaNegotiator negotiator) throws EarlyEofE
}
}

public TextFormatPlugin(String name, DrillbitContext context, Configuration fsConf, StoragePluginConfig storageConfig) {
this(name, context, fsConf, storageConfig, new TextFormatConfig());
}

public TextFormatPlugin(String name, DrillbitContext context,
Configuration fsConf, StoragePluginConfig config,
TextFormatConfig formatPluginConfig) {
Expand Down

0 comments on commit 82e1055

Please sign in to comment.