[
https://issues.apache.org/jira/browse/NIFI-13557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17867831#comment-17867831
]
ASF subversion and git services commented on NIFI-13557:
--------------------------------------------------------
Commit b9b89ed212716d36f72fb82da9f13c67089f9af2 in nifi's branch
refs/heads/support/nifi-1.x from dan-s1
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=b9b89ed212 ]
NIFI-13557 Corrected Date Time Matcher to support single digit months
This closes #9094
(cherry picked from commit 059a3b774521bb4f714748784c694c898018ae97)
Signed-off-by: David Handermann <[email protected]>
> Record Inference Code (org.apache.nifi.util.SchemaInferenceUtil.getDataType)
> Does not Allow Single Digit Months
> ---------------------------------------------------------------------------------------------------------------
>
> Key: NIFI-13557
> URL: https://issues.apache.org/jira/browse/NIFI-13557
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Daniel Stieglitz
> Assignee: Daniel Stieglitz
> Priority: Major
> Fix For: 2.0.0-M5
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> When running tests using the ExcelReader and inferring the schema, even
> though the date pattern 'M/d/yy' was specified (which per this
> [post|https://stackoverflow.com/questions/27571377/datetimeformatter-support-for-single-digit-day-of-month-and-month-of-year]
> should allow single digit months), dates like '1/1/18' are not inferred to
> be DATE:M/d/yy but rather STRING. The source for this is
> org.apache.nifi.util.text.RegexDateTimeMatcher whose regular expression for
> months requires two digits. It should be relaxed to allow for one or two
> digits.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)