I have a SQL file with multiple SQL statements and I need to read them from a text file using Kettle / Pentaho PDI 6.1.0.
All the statements are separated using a semicolon, however each statement may be spanned across multiple lines:
CREATE TABLE Staging01 AS
SELECT ....
WHERE ...;
UPDATE Staging01
SET ....
WHERE ...;
I need to parse the file, taking each sql statement as a one single string.
I tried to use the Text Input File step but it always reads data line by line.
Can you help?
Thank you.