Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
In class StreamExecutionEnvironment
// code placeholder public DataStreamSource<String> readTextFile(String filePath, String charsetName) { Preconditions.checkNotNull(filePath, "The file path must not be null."); Preconditions.checkNotNull(filePath.isEmpty(), "The file path must not be empty."); TextInputFormat format = new TextInputFormat(new Path(filePath)); format.setFilesFilter(FilePathFilter.createDefaultFilter()); TypeInformation<String> typeInfo = BasicTypeInfo.STRING_TYPE_INFO; format.setCharsetName(charsetName); return readFile(format, filePath, FileProcessingMode.PROCESS_ONCE, -1, typeInfo); }
the Preconditions.checkNotNull(filePath.isEmpty(), "The file path must not be empty."); this will not work
Attachments
Issue Links
- links to