[
https://issues.apache.org/jira/browse/NIFI-13557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17867438#comment-17867438
]
ASF subversion and git services commented on NIFI-13557:
--------------------------------------------------------
Commit 059a3b774521bb4f714748784c694c898018ae97 in nifi's branch
refs/heads/main from dan-s1
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=059a3b7745 ]
NIFI-13557 Corrected Date Time Matcher to support single digit months
This closes #9094
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
> Time Spent: 20m
> 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)