diff --git a/nebula/src/main/java/com/ldbc/impls/workloads/ldbc/snb/nebula/NebulaDb.java b/nebula/src/main/java/com/ldbc/impls/workloads/ldbc/snb/nebula/NebulaDb.java index 0a690ff59..bd81e3525 100644 --- a/nebula/src/main/java/com/ldbc/impls/workloads/ldbc/snb/nebula/NebulaDb.java +++ b/nebula/src/main/java/com/ldbc/impls/workloads/ldbc/snb/nebula/NebulaDb.java @@ -70,7 +70,6 @@ protected void onInit(Map properties, LoggingService loggingServ } } dcs = new NebulaDbConnectionState(properties, new NebulaQueryStore(properties.get("queryDir"))); - } catch (UnknownHostException e) { throw new DbException(e.getMessage()); } diff --git a/nebula/src/main/java/com/ldbc/impls/workloads/ldbc/snb/nebula/NebulaID.java b/nebula/src/main/java/com/ldbc/impls/workloads/ldbc/snb/nebula/NebulaID.java index caea75727..f36a27d73 100644 --- a/nebula/src/main/java/com/ldbc/impls/workloads/ldbc/snb/nebula/NebulaID.java +++ b/nebula/src/main/java/com/ldbc/impls/workloads/ldbc/snb/nebula/NebulaID.java @@ -10,4 +10,4 @@ public class NebulaID { public static String POST_ID_PREFIX = "s-"; public static String TAG_ID_PREFIX = "t-"; public static String TAGCLASS_ID_PREFIX = "g-"; -} +} \ No newline at end of file diff --git a/nebula/src/main/java/com/ldbc/impls/workloads/ldbc/snb/nebula/converter/NebulaConverter.java b/nebula/src/main/java/com/ldbc/impls/workloads/ldbc/snb/nebula/converter/NebulaConverter.java index 574c8ab08..e43968362 100644 --- a/nebula/src/main/java/com/ldbc/impls/workloads/ldbc/snb/nebula/converter/NebulaConverter.java +++ b/nebula/src/main/java/com/ldbc/impls/workloads/ldbc/snb/nebula/converter/NebulaConverter.java @@ -17,7 +17,7 @@ public class NebulaConverter extends Converter { public static long convertDateTimesToEpoch(String date) throws ParseException { final SimpleDateFormat sdf = new SimpleDateFormat(DATETIME_FORMAT); sdf.setTimeZone(TimeZone.getTimeZone("GMT")); - return sdf.parse(date).toInstant().toEpochMilli(); + return sdf.parse(date.substring(0, date.length() - 3)).toInstant().toEpochMilli(); } public static long convertDateToEpoch(String date) throws ParseException { diff --git a/nebula/src/test/java/nebula/NebulaInteractiveTest.java b/nebula/src/test/java/nebula/NebulaInteractiveTest.java index 0981e90a0..dfe8de251 100644 --- a/nebula/src/test/java/nebula/NebulaInteractiveTest.java +++ b/nebula/src/test/java/nebula/NebulaInteractiveTest.java @@ -36,7 +36,7 @@ protected Map getProperties() { @Test public void testConvertTime() throws ParseException { - System.out.println(NebulaConverter.convertDateTimesToEpoch("2010-02-14T15:32:10.447")); + System.out.println(NebulaConverter.convertDateTimesToEpoch("2012-01-01T11:16:57.465000")); } @Test