[
https://issues.apache.org/jira/browse/BEAM-12164?focusedWorklogId=726113&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-726113
]
ASF GitHub Bot logged work on BEAM-12164:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 14/Feb/22 04:12
Start Date: 14/Feb/22 04:12
Worklog Time Spent: 10m
Work Description: thiagotnunes opened a new pull request #16844:
URL: https://github.com/apache/beam/pull/16844
Nanosecond precision is used by Spanner to track change streams, for which
we are adding support here. Previously we only supported microsecond precision.
Implements a timestamp restriction tracker on top of bytekeyrange tracker to
allow for desired precision and to claim timestamps. This was necessary,
because the precision can not be represented through a long (with the
OffsetRangeTracker).
On top of new TimestampRangeTracker, we built two decorator restriction
trackers for each of our SDFs, which behave slightly differently.
The DetectNewPartitionsTracker allows for claiming timestamps equal to or
greater than the current restriction timestamp.
The ReadChangeStreamPartitionTracker does the same as the above, but it
disallows for splitting when the initial (fake) partition is being queried. We
do not want to split at that case, because there is no way to resume from where
we left of specifically for the initial change stream query.
This commit also modifies the relevant tests.
--
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 726113)
Time Spent: 17h 40m (was: 17.5h)
> SpannerIO Change Stream Connector
> ---------------------------------
>
> Key: BEAM-12164
> URL: https://issues.apache.org/jira/browse/BEAM-12164
> Project: Beam
> Issue Type: New Feature
> Components: sdk-java-core
> Reporter: Thiago Nunes
> Priority: P3
> Time Spent: 17h 40m
> Remaining Estimate: 0h
>
> We would like to augment the existing Google Cloud SpannerIO connector
> ([https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/SpannerIO.java)]
> with the support for Spanner Change Streams (CDC). CDC support is just being
> implemented in Spanner and it will be exposed through a gRPC API. We will use
> such API to create a new SpannerIO.readChangeStream(...) implementation.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)