Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
vtabel
Contributor
Contributor

error cast varchar2 in tImpalaOutput

Hello,

i have a problem, i can't cast from String to varchar2 in tImpalaOutput.

In edit schema of

tImpalaOutput

,I can't find varchar2 in

db type ,

while my cloudera table has the varchar2 db type;

I extract the data of salesforce. this is the error :

[statistics] disconnected

[INFO ] 12:02:46 mig_ss_dev.jobload_rl_sf_account_test_0_1.JobLoad_rl_sf_account_test- TalendJob: 'JobLoad_rl_sf_account' - Done.

Exception in the component tImpalaOutput_2:AnalysisException: Possible loss of precision for target table 'edl_rl_svil.rl_sf_account'.

Expression ''0010e00000uhuwpqaw'' (type: STRING) would need to be cast to VARCHAR(18) for column 'id'.

can someone help me thanks

Labels (3)
2 Replies
manodwhb
Champion II
Champion II

@Viky Tabellio​ , use sting data type ,which you will find in tImpalaOutput.

vtabel
Contributor
Contributor
Author

thanks for the reply, but they asked me to create the tables with varchar, I wanted to know if it is possible to cast with java, perhaps using the java.sql.type, perhaps writing a routines, you know if there is the possibility of to do it ?