You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ex...@apache.org on 2024/07/22 19:16:24 UTC

(nifi) branch support/nifi-1.x updated: NIFI-13557 Fixed TestSchemaInferenceUtil for Single Digit Month

This is an automated email from the ASF dual-hosted git repository.

exceptionfactory pushed a commit to branch support/nifi-1.x
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/support/nifi-1.x by this push:
     new c58c88d404 NIFI-13557 Fixed TestSchemaInferenceUtil for Single Digit Month
c58c88d404 is described below

commit c58c88d404b61e5129fbecf5f3006fb8e5a5b6a1
Author: dan-s1 <ds...@gmail.com>
AuthorDate: Wed Jul 3 11:21:15 2024 -0500

    NIFI-13557 Fixed TestSchemaInferenceUtil for Single Digit Month
    
    Signed-off-by: David Handermann <ex...@apache.org>
---
 .../src/test/java/org/apache/nifi/util/TestSchemaInferenceUtil.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/src/test/java/org/apache/nifi/util/TestSchemaInferenceUtil.java b/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/src/test/java/org/apache/nifi/util/TestSchemaInferenceUtil.java
index bacb21a868..b73a537d83 100644
--- a/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/src/test/java/org/apache/nifi/util/TestSchemaInferenceUtil.java
+++ b/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/src/test/java/org/apache/nifi/util/TestSchemaInferenceUtil.java
@@ -73,7 +73,7 @@ class TestSchemaInferenceUtil {
     private static Stream<Arguments> dataForTimeInference() {
         return Stream.of(
             Arguments.of("2017-03-19", RecordFieldType.DATE.getDataType(DATE_FORMAT)),
-            Arguments.of("2017-3-19", RecordFieldType.STRING.getDataType()),
+            Arguments.of("2017-3-19", RecordFieldType.DATE.getDataType(DATE_FORMAT)),
             Arguments.of("2017-44-55", RecordFieldType.STRING.getDataType()),
             Arguments.of("2017.03.19", RecordFieldType.STRING.getDataType()),