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

GenerateTableFetch with Partition Size of 0 produces NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.4.0
    • Component/s: None
    • Labels:
      None

      Description

      The description of partition size says "A value of zero indicates that a single FlowFile is to be generated whose SQL statement will fetch all rows in table".

      If you set the partition size to 0 the processor will get an NPE at these two lines:

      long limit = partitionSize == 0 ? null : partitionSize;
      long offset = partitionSize == 0 ? null : i * partitionSize;

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mattyb149 Matt Burgess
                Reporter:
                bbende Bryan Bende
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: