[ https://issues.apache.org/jira/browse/NIFI-5141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16466818#comment-16466818 ]
ASF GitHub Bot commented on NIFI-5141: -------------------------------------- Github user bdesert commented on a diff in the pull request: https://github.com/apache/nifi/pull/2679#discussion_r186609421 --- Diff: nifi-commons/nifi-record/src/main/java/org/apache/nifi/serialization/record/util/DataTypeUtils.java --- @@ -60,19 +60,19 @@ private static final String Infinity = "(Infinity)"; private static final String NotANumber = "(NaN)"; - private static final String Base10Digits = "\\d+"; - private static final String Base10Decimal = "\\." + Base10Digits; - private static final String OptionalBase10Decimal = Base10Decimal + "?"; + private static final String Base10Digits = "\\d+"; + private static final String Base10Decimal = "\\." + Base10Digits; + private static final String OptionalBase10Decimal = "(" + Base10Decimal + ")?"; - private static final String Base10Exponent = "[eE]" + OptionalSign + Base10Digits; + private static final String Base10Exponent = "[eE]" + OptionalSign + Base10Digits; private static final String OptionalBase10Exponent = "(" + Base10Exponent + ")?"; private static final String doubleRegex = OptionalSign + "(" + Infinity + "|" + NotANumber + "|"+ - "(" + Base10Digits + Base10Decimal + ")" + "|" + + "(" + Base10Digits + OptionalBase10Decimal + ")" + "|" + "(" + Base10Digits + OptionalBase10Decimal + Base10Exponent + ")" + "|" + --- End diff -- I think it'd be nice to have also: "(" + Base10Digits + "\\." + ")" + "|" + > ValidateRecord considers a record invalid if it has an integer value and > schema says double, even if strict type checking is disabled > ------------------------------------------------------------------------------------------------------------------------------------- > > Key: NIFI-5141 > URL: https://issues.apache.org/jira/browse/NIFI-5141 > Project: Apache NiFi > Issue Type: Bug > Components: Extensions > Reporter: Mark Payne > Assignee: Mark Payne > Priority: Major > Labels: Record, beginner, newbie, validation > Fix For: 1.7.0 > > -- This message was sent by Atlassian JIRA (v7.6.3#76005)