lucienoz commented on issue #9342:
URL: https://github.com/apache/hudi/issues/9342#issuecomment-1662215750
create table hudi.payload_demo_cow
(id bigint,
value string,
ts long)
using hudi
tblproperties (
type = 'cow',
primaryKey = 'id',
hoodie.datasource.write.payload.class =
'org.apache.hudi.common.model.DefaultHoodieRecordPayload',
preCombineField = 'ts' );
-- first insert
insert into hudi.payload_demo_cow (id,value,ts) values (1,'2',3);
select * from hudi.payload_demo_cow;
+--+-----+--+
|id|value|ts|
+--+-----+--+
|1 |2 |3 |
+--+-----+--+
-- second insert
insert into hudi.payload_demo_cow (id,value,ts) values (1,'1',2);
select * from hudi.payload_demo_cow;
+--+-----+--+
|id|value|ts|
+--+-----+--+
|1 |1 |2 |
+--+-----+--+
--
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]