Skip to content

Commit

Permalink
Back out previous change.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Bezold committed Feb 14, 2018
1 parent c96ca3f commit 8651b75
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -520,9 +520,9 @@ private static void validateSchema(ExternalFileSchema schema, PrintStream logger

if(user_field.getfType()==FieldType.MEASURE)
{
if(user_field.getDefaultValue()!=null && !isLatinNumber(user_field.getDefaultValue()))
if(user_field.getDefaultValue()==null || !isLatinNumber(user_field.getDefaultValue()))
{
message.append("field {"+user_field.getFullyQualifiedName()+"} in schema must be either null or have a default numeric value\n");
message.append("field {"+user_field.getFullyQualifiedName()+"} in schema must have default numeric value\n");
}

if(!(user_field.getPrecision()>0 && user_field.getPrecision()<19))
Expand Down Expand Up @@ -1210,4 +1210,4 @@ public static void setUniqueId(ExternalFileSchema inSchema, HashSet<String> uniq



}
}

0 comments on commit 8651b75

Please sign in to comment.