hive日志查询时间戳为0时日期属性值设置为null
This commit is contained in:
@@ -157,7 +157,7 @@ public class HiveJDBC {
|
|||||||
if (null != value && !value.toString().equals("")) {
|
if (null != value && !value.toString().equals("")) {
|
||||||
time = Long.parseLong(value.toString());
|
time = Long.parseLong(value.toString());
|
||||||
}
|
}
|
||||||
map.put(filedName, new Date(time * 1000));
|
map.put(filedName, time==0l?null:new Date(time * 1000));
|
||||||
// map.put(filedName, new
|
// map.put(filedName, new
|
||||||
// Date(Long.parseLong("1476583810000")));
|
// Date(Long.parseLong("1476583810000")));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user