mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-02 21:43:22 +08:00
Merge pull request #1959 from alibaba/jtchen-study-patch-1
Update DFSUtil.java
This commit is contained in:
commit
86b7935bb4
@ -621,8 +621,9 @@ public class DFSUtil {
|
|||||||
} else if (StringUtils.equalsIgnoreCase(specifiedFileType, Constant.SEQ)) {
|
} else if (StringUtils.equalsIgnoreCase(specifiedFileType, Constant.SEQ)) {
|
||||||
|
|
||||||
return isSequenceFile(filepath, in);
|
return isSequenceFile(filepath, in);
|
||||||
|
} else if (StringUtils.equalsIgnoreCase(specifiedFileType, Constant.PARQUET)) {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
String message = String.format("检查文件[%s]类型失败,目前支持ORC,SEQUENCE,RCFile,TEXT,CSV五种格式的文件," +
|
String message = String.format("检查文件[%s]类型失败,目前支持ORC,SEQUENCE,RCFile,TEXT,CSV五种格式的文件," +
|
||||||
"请检查您文件类型和文件是否正确。", filepath);
|
"请检查您文件类型和文件是否正确。", filepath);
|
||||||
|
Loading…
Reference in New Issue
Block a user