Skip to content
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

[Feature Request]: Spanner to cloud storage, custom output format #1908

Open
darkmakukudo opened this issue Oct 1, 2024 · 0 comments
Open
Labels
addition New feature or request needs triage p2

Comments

@darkmakukudo
Copy link

darkmakukudo commented Oct 1, 2024

Related Template(s)

Spanner change events to cloud storage

What feature(s) are you requesting?

Setup a dataflow job that listen to spanner change events and dump events to cloud storage.
Works fine however, there are a lot of unneeded fields that make the file size big.

{"partitionToken":"token here","isLastRecordInTransactionInPartition":true,"recordSequence":"00000000","tableName":"table","rowType":[],"mods":[],"modType":"INSERT","valueCaptureType":"OLD_AND_NEW_VALUES","numberOfRecordsInTransaction":1,"numberOfPartitionsInTransaction":1,"metadata":{"com.google.cloud.teleport.v2.ChangeStreamRecordMetadata":{"partitionToken":"-","recordTimestamp":1727773949740589,"partitionStartTimestamp":1727772327871000,"partitionEndTimestamp":253402300799999999,"partitionCreatedAt":1727772505654159,"partitionScheduledAt":1727772506852883,"partitionRunningAt":1727772506981536,"queryStartedAt":-62135596800000000,"recordStreamStartedAt":1727773949836000,"recordStreamEndedAt":1727773949836000,"recordReadAt":1727773949836000,"totalStreamTimeMillis":2034,"numberOfRecordsRead":114}},"spannerDatabaseId":null,"spannerInstanceId":null,"outputMessageMetadata":null}

Is there a way to override the output format and output only the newValuesJson?

@darkmakukudo darkmakukudo added addition New feature or request needs triage p2 labels Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition New feature or request needs triage p2
Projects
None yet
Development

No branches or pull requests

1 participant