The Get Filenames step allows you to retrieve information associated with filenames in the file system. The obtained file name is added to the stream as a line. Search for files using wildcard (RegExp) fields
Stepwise illustration on how to use "Get file names" step given below.
Configure File tab
Enter directory name and click add.
Configure Filter tab
Execution and Results
Complete the flow by adding a dummy step and execute transformation.
2022/11/24 23:57:41 - Spoon - Running transformation using the Kettle execution engine
2022/11/24 23:57:41 - Spoon - Transformation opened.
2022/11/24 23:57:41 - Spoon - Launching transformation [Untitled]...
2022/11/24 23:57:41 - Spoon - Started the transformation execution.
2022/11/24 23:57:41 - Untitled - Dispatching started for transformation [Untitled]
2022/11/24 23:57:41 - Get file names.0 - Finished processing (I=0, O=0, R=0, W=13, U=0, E=0)
2022/11/24 23:57:41 - Dummy (do nothing).0 - Finished processing (I=0, O=0, R=13, W=13, U=0, E=0)
2022/11/24 23:57:41 - Spoon - The transformation has finished!!
Results :
The Get File Names step in Pentaho Data Integration is useful for automating file discovery in ETL workflows. Configuring a directory and using regular expressions to identify CSV files makes it easier to select the required inputs for subsequent processing. The step-by-step explanation also helps readers understand how to configure the step and preview the results.
ReplyDeleteFile discovery and extraction are important parts of ETL pipelines, particularly when processing data from multiple sources. A Data Engineering Course can help learners understand data integration concepts, transformation workflows, and practical approaches to building reliable data pipelines.
The ability to filter files and preview rows before further processing helps developers validate their input data and troubleshoot configuration issues. Exploring Big Data Projects can also provide practical exposure to data processing techniques and applications involving large datasets.
ReplyDelete