Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-11209

UpdateHive3Table and UpdateDatabaseTable erase newly created columns in output FlowFile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-M1, 1.21.0
    • Extensions
    • None

    Description

      When using UpdateHive3Table or PutDatabaseTable with the Update Field Names property set to "true", the output will include only those fields that already had existing columns in the target table. This means if an incoming FlowFile has a "new" field, the column will be created and populated in the target database, but the output FlowFile will no longer have the "new" fields in the outgoing records.

      This is because the original database columns are used to populate the outgoing record schema when the Update Field Names property is set to true. Instead the database columns should be refreshed/maintained after any DDL is executed in order to get the updated set of database column names.

      Attachments

        Issue Links

          Activity

            People

              mattyb149 Matt Burgess
              mattyb149 Matt Burgess
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m