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

GenerateTableFetch with Partition Size of 0 produces NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.0
    • 1.4.0
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: