mysql - How to log the result of a select query in tMysqlRow to tLogRow in Talend? -
i have simple job 2 components tmysqlrow connected via row/main tlogrow.
i have simple select statement in tmysqlrow component have tested directly on db , works , returns single record. when run job says "1 rows in 0.04s" assume means tmysqlrow component getting 1 row db.
in tlogrow component have pressed "sync columns" button on basic tab , when edit schema can see columns there.
but when run job, logs following:
starting job loadcontextvariablesfromdbrecorddemo @ 13:07 30/09/2015. [statistics] connecting socket on port 3714 [statistics] connected |||||| [statistics] disconnected job loadcontextvariablesfromdbrecorddemo ended @ 13:07 30/09/2015. [exit code=0]
so @ loss why values not logged?
what doing wrong here?
regards,
scott
so got advise talend forum telling me:
do need use tmysqlrow component? understand, tmysqlinput component need. directly returns result of query , propagates flow. tmysqlrow component not handle returned data default. in case restricted use tmysqlrow component, have check propagate query's recordset in advanced settings of tmysqlrow component , use tparserecordset component extract data. more information , guide, please, refer tmysqlrow component guide page. there example on how this.
i had issue after solved tmysqlinput component show warning message:
the schema's dbtype not correct component
this solved in same thread.
regards,
scott
Comments
Post a Comment