-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to do CDC stream UPSERT with java library? #2135
Comments
I am getting same error |
this CDC feature works in python but not in java, any ideas when it will get fixed? |
i believe the error is related to missing field it works as append mode(without failing), when unknown fields set to be ignored |
To use the upsert functionality, it needs to specify the table schema with the _change_type field. You can do this by changing the constructor you use inside the DataWriter.initialize method by using link. In order to padding the _change_type into the current table schema, the code can be:
|
yeah that's what i did to get it working, thanks for sharing :) |
We recently added CDC upsert sample which can be found here: |
@Neenu1995 @PhongChuong We are publishing a JSON to PubSub, and the subscription uses the Does this mean that we should alter the BigQuery table to have the |
Just for the record, the issue was that the BigQuery table didn´t have PK specified. The component responsible for writing then probably doesn´t expect the |
Thanks for the tips about primary key and to add the I found this code in
|
is it possible to do CDC stream inserts? is this feature available in java library?
getting following error
The text was updated successfully, but these errors were encountered: