In Talend Open Studio, there are several ways to retrieve the current date for using in loading and transformation.
In components like tMap, you can use Talend functions or Java. In tMap, select the Expression Editor and enter the following in one of the target fields.
TalendDate.getCurrentDate()
or
new java.util.Date()
If you're using tMySQLMap, you use MySQL functions. The Expression Editor isn't available in tMySQLMap, so enter the following manually.
NOW()
Another option is to embed the generated date in the source SQL. For example, rather than using a query like
SELECT * FROM SR_DIM_SYSTEM
which is generally the default, try
SELECT system_nm, system_descr_tx, NOW() FROM SR_DIM_SYSTEM
.
Carl, Thank you once again for this new post on Talend.
ReplyDeleteTalend Community Manager
IntelliMindz is a best IT Training in Bangalore with placement, offering 200 and more software courses with 100% Placement Assistance.
DeleteDevOps Course In Bangalore
DevOps Online Training
DevOps Training in Chennai
Nice blog on Talend Carl.
ReplyDelete