You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/02/25 17:46:00 UTC

[jira] [Commented] (NIFI-8259) CSVSchemaInference should infer fields as strings if no records are present

    [ https://issues.apache.org/jira/browse/NIFI-8259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17291077#comment-17291077 ] 

ASF subversion and git services commented on NIFI-8259:
-------------------------------------------------------

Commit 29cc3886fcdb5322162a12c531468a9415fee9ed in nifi's branch refs/heads/main from Matt Burgess
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=29cc388 ]

NIFI-8259: Infer CSV field types as strings if no records are present


> CSVSchemaInference should infer fields as strings if no records are present
> ---------------------------------------------------------------------------
>
>                 Key: NIFI-8259
>                 URL: https://issues.apache.org/jira/browse/NIFI-8259
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Matt Burgess
>            Assignee: Matt Burgess
>            Priority: Major
>             Fix For: 1.14.0, 1.13.1
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Even though the field names may be present in a flow file whose schema is to be inferred by CSVReader, if there are no records in the flow file the data types of the fields cannot be ascertained. This causes the schema to be empty and can result in unwanted behavior in processors such as QueryRecord and ConvertRecord.
> Instead the schema inference should assume all fields are of string types, such that a "best-effort" schema is generated for use by the processors.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)