[
https://issues.apache.org/jira/browse/NIFI-13557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17867862#comment-17867862
]
ASF subversion and git services commented on NIFI-13557:
--------------------------------------------------------
Commit 0fffb0c3e8a4e697d80bd6f97d8f1d6bddfe0b61 in nifi's branch
refs/heads/support/nifi-1.x from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=0fffb0c3e8 ]
NIFI-13557 Fixed TestExcelSchemaInference for Single Digit Month
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: 1.28.0, 2.0.0-M5
>
> Time Spent: 50m
> 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)