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

Change bulletinTimestamp in QueryNiFi BULLETINS table to Long

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.14.0
    • Extensions
    • None

    Description

      The table model for BULLETINS, which allows components like QueryNiFiReportingTask to issue SQL queries against NiFi repositories such as Bulletins, specifies the "bulletinTimestamp" column as a Date.

      This makes it difficult to do comparisons, as Calcite (per the SQL standard) doesn't assume integral values correspond to dates/times based on Epoch. In order to get all bulletins after a certain Date (for example, five minutes ago), the user would have to do the math on the milliseconds and then format that as a String to be used as a Date literal in the SQL query.

      Instead this Jira proposes to change the datatype of bulletinTimestamp to "long", making it consistent with other table models' timestamp columns and making it easier to generate SQL queries using this field (such as incremental fetch).

      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 - 0.5h
                  0.5h