Skip to content

Commit

Permalink
Making file extension mandatory (#69)
Browse files Browse the repository at this point in the history
File extension is optional parameter but when we try to process parquet file using CsvFileIngestService class, it throws parsing error when it tries to process parquet file.
  • Loading branch information
kuldeepk3 authored Mar 6, 2024
1 parent cf0cc0a commit c802447
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public DeviceDriver(DeviceDriverConfig config) {
public String getProperty(String key) {
final String value = config.getProperties().get(key);
if (value == null || value.isEmpty()) {
throw new IllegalArgumentException(MessageFormat.format("Missing required parameter {0}", key));
throw new IllegalArgumentException(MessageFormat.format("PSC Service Error: Missing required parameter {0} in config", key));
}
return value;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ String getFileSpec() {
return getProperty(FILE_SPEC_KEY);
}
String getFileExtension() {
return getProperty(FILE_EXT, "");
return getProperty(FILE_EXT);
}

boolean getDeleteCompletedFiles() {
Expand Down

0 comments on commit c802447

Please sign in to comment.