cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Pipeline design

sp41832
New Contributor

Hi ,

I have requirement

  1. I read a database table and get a max date from the table and pass it on. E.g my max date is 2018-07-02
  2. now i need to process a file for each day bet ween max date from previous snap and today.
    E.g(max date is : 2018-07-02 and today date is 2018-07-10) so i need to process a snap for each date of 2018-07-02 ,2018-07-03,2018-07-04,2018-07-05โ€ฆtill 2018-07-10

i have a solution which is not very effective , I can create CSV file which contains all dates and use it to pass the date as parameter to downstream snaps.

Looking for suggestions.

4 REPLIES 4

Supratim
Contributor III

@sp41832 Can you please be more specific why you need to execute each day wise, rather filter data based on max date?

Hi,

The reason i cannot do as suggested by you is, i need to prepare a table based where i track the performance of a product or a campaign based on each day.

@sp41832
Hi , rather write on CSV file you can pass those value to down stream snap. If you are facing issue to evaluate till date, you can refer my pipeline to calculate the day difference then pass it to downstream snap.

If you want you can share your pipeline and use case which you are looking for. Day_Difference_Forum_2018_07_05.slp (8.5 KB)

sp41832
New Contributor

HI,

Thank you, i have implemented a java script more or less similar to your script and call the down stream snaps for each day.
Thank you