[
https://issues.apache.org/jira/browse/NIFI-13557?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Handermann updated NIFI-13557:
------------------------------------
Fix Version/s: 2.0.0-M5
Resolution: Fixed
Status: Resolved (was: Patch Available)
> 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: 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)