nsivabalan edited a comment on issue #3297:
URL: https://github.com/apache/hudi/issues/3297#issuecomment-931514853
I could not reproduce the issue where enabling metadata is failing. I tried
locally. Can you try w/ latest master and let us know how it goes.
```
create table hudi_gh_ext2 using hudi location
'file:/tmp/hudi_testing/hudi_2/' options (
type = 'cow',
primaryKey = 'id',
preCombineField = 'created_at'
)
partitioned by (type) as select public, repo, actor, org, id, other,
created_at, type from pqt_raw;
select count(*) from hudi_gh_ext2;
// upsert into hudi table
MERGE INTO hudi_gh_ext2
USING (select public, repo, actor, org, id, other, created_at, type from
pqt_updates) tbl1
ON hudi_gh_ext2.id = tbl1.id
WHEN MATCHED THEN
UPDATE SET *
WHEN NOT MATCHED
THEN INSERT * ;
set hoodie.metadata.enable = true;
MERGE INTO hudi_gh_ext2
USING (select public, repo, actor, org, id, other, created_at, type from
pqt_updates) tbl1
ON hudi_gh_ext2.id = tbl1.id
WHEN MATCHED THEN
UPDATE SET *
WHEN NOT MATCHED
THEN INSERT * ;
```
--
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]