Search code examples
kettlepentaho-data-integrationpdi

PDI - Can I implement Exist logic in pentaho? Or is there any way?


I wonder, is there any way to implement exist logic using PDI like in Query Script below
EXIST (SELECT a.product FROM store a, struck b WHERE b.product = a.product) to check is the data exist in files (CSV)?

I know PDI has provide design tools like Table Exist, File Exist and Check if a column exist but that tools only work in DB Table and File not data inside the File.


Solution

  • You can count the records in the file (or sql, or REST client, or,...) and filter only if it is not zero.

    enter image description here