Skip to content

Commit bfb2ae3

Browse files
committed
fix(loader): Add casting not support exception
1 parent 66d4480 commit bfb2ae3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hugegraph-loader/src/main/java/org/apache/hugegraph/loader/util/DataTypeUtil.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ private static Object parseSingleValue(String key, Object rawValue,
163163
FileSource fileSource = (FileSource) source;
164164
dateFormat = fileSource.dateFormat();
165165
timeZone = fileSource.timeZone();
166+
} else {
167+
throw new IllegalArgumentException(
168+
"Date format source " +
169+
source.getClass().getName() +
170+
" not supported");
166171
}
167172

168173
if (extraDateFormats == null || extraDateFormats.isEmpty()) {

0 commit comments

Comments
 (0)