Skip to content

Commit f93b4d6

Browse files
Parse Longs as Longs instead of Integers
1 parent 324a181 commit f93b4d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/vaticle/typedb/osi/loader/util/GeneratorUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public static ThingConstraint.Value<?> generateValueConstraint(String attributeS
145145
break;
146146
case LONG:
147147
try {
148-
constraint = new ThingConstraint.Value.Long(TypeQLToken.Predicate.Equality.EQ, Integer.parseInt(cleanedValue));
148+
constraint = new ThingConstraint.Value.Long(TypeQLToken.Predicate.Equality.EQ, Long.parseLong(cleanedValue));
149149
} catch (NumberFormatException numberFormatException) {
150150
FileLogger.getLogger().logColumnWarnings(fileName, originalRow);
151151
dataLogger.warn(String.format("column of type long for variable <%s> with non-<long> value <%s> - skipping column - faulty row written to <%s_column_type.log>", attributeSchemaType, cleanedValue, fileNoExtension));

0 commit comments

Comments
 (0)