Forum Discussion

hina_walia's avatar
hina_walia
New Contributor
6 years ago

Select count not working base in variable

Hi,
I want to pass the filename from parameter(pipeline-parameter) and check if that file is already loaded or not. If not loaded, then we go ahead to load it otherwise we do nothing.
Actually i have parent job and then this is child job , so pipeline parameter is from parent, it works fine without this file check step, so with file check step below is the issue:-
Below is the sql in snowflake execute
SELECT count(*) as cnt FROM FDR_SOURCE.KRONOS_LABORtest WHERE SOURCE_FILENAME = _Name
If i pass some fixed value, instead of _Name, then pipeline work fine. if i use param (_Name), it throws below error.


PLease see attached screenshot

Param set in “pipeline parameter”

3 Replies

  • Mahesh7225's avatar
    Mahesh7225
    New Contributor

    Thanks from reply , Do you have any sample pipeline ?

    Thanks
    Mahesh

    • vineesha's avatar
      vineesha
      Employee

      Hi,
      Below is the sample pipeline that can be used to delay time. Right now this pipeline has delay time of 89 sec, you can change that according to your preference.sleep_2021_01_29.slp (3.7 KB)