Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-11129

Add macro support for hydrator plugins

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.0
    • Component/s: Pipeline Plugins, Pipelines
    • Labels:
      None
    • Release Notes:
      Added runtime macros to database and post action hydrator plugins.
    • Rank:
      1|hzz7c7:

      Description

      A lot of times, it is useful to be able to substitute some values into a config setting based on the logical start time of the pipeline run. For example, a database query might want to filter on the date, something like:

      select * from table where date = '${runtime-1d:yyyy-MM-dd}' 
      

      if scheduled to run on 2016-02-19, would become:

      select * from table where date = '2016-02-18'
      

        Attachments

          Activity

            People

            • Assignee:
              ashau Albert Shau
              Reporter:
              ashau Albert Shau
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: