I have varchar2 fields in my databases (Oracle and Impala) and I want to insert string fields into this fields. I could not insert the values as string as normally. I got following error
AnalysisException: Possible loss of precision for target table 'test01.testdcr'. Expression ''data1 data2 data3 data4 '' (type: STRING) would need to be cast to VARCHAR(128) for column 'testVarchar2Field'
How can I convert string variable to varchar2 while inserting into table ?