dongkelun commented on pull request #3700: URL: https://github.com/apache/hudi/pull/3700#issuecomment-951457674
> > > @dongkelun I reproduce this using the table in UT in my local env, `ClassCastException` is raised. The detail trace stack: `Caused by: java.lang.ClassCastException: org.apache.spark.unsafe.types.UTF8String cannot be cast to java.lang.Integer at org.apache.hudi.sql.payload.ExpressionPayloadEvaluator_228eb15b_f549_4127_a201_a71c459c1f61.eval(Unknown Source) at org.apache.spark.sql.hudi.command.payload.ExpressionPayload.evaluate(ExpressionPayload.scala:258) ` > > > is it same with yours? > > > > > > Sorry, I don't know what UT is or how to use it. Is UTC time set or something else? > > I mean UT is unit test. sql is run as followed : > > create table h0 ( id int, name string, price double, ts long, dt string) using hudi options (primaryKey ='id', preCombineField = 'ts'); > > merge into h0 as t0 using (select 1 as ID, 'a1' as NAME, 1111 as TS, '2021-05-05' as DT, 111 as PRICE) as s0 on t0.id = s0.id when matched then update set * when not matched then insert *; I haven't encountered such an exception. I can run unit test cases in the local Windows environment. I tried your SQL and there was no problem. It can run normally -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
