[
https://issues.apache.org/jira/browse/BEAM-6078?focusedWorklogId=166905&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-166905
]
ASF GitHub Bot logged work on BEAM-6078:
----------------------------------------
Author: ASF GitHub Bot
Created on: 16/Nov/18 14:51
Start Date: 16/Nov/18 14:51
Worklog Time Spent: 10m
Work Description: iemejia closed pull request #7063: [BEAM-6078] Use
builder's keyspace by default when using CassandraIO.…
URL: https://github.com/apache/beam/pull/7063
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/sdks/java/io/cassandra/src/main/java/org/apache/beam/sdk/io/cassandra/CassandraServiceImpl.java
b/sdks/java/io/cassandra/src/main/java/org/apache/beam/sdk/io/cassandra/CassandraServiceImpl.java
index 7a577e93ae0..62a9bce1f18 100644
---
a/sdks/java/io/cassandra/src/main/java/org/apache/beam/sdk/io/cassandra/CassandraServiceImpl.java
+++
b/sdks/java/io/cassandra/src/main/java/org/apache/beam/sdk/io/cassandra/CassandraServiceImpl.java
@@ -75,7 +75,7 @@ public boolean start() {
source.spec.password(),
source.spec.localDc(),
source.spec.consistencyLevel());
- session = cluster.connect();
+ session = cluster.connect(source.spec.keyspace());
LOG.debug("Queries: " + source.splitQueries);
List<ResultSetFuture> futures = new ArrayList<>();
for (String query : source.splitQueries) {
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 166905)
Time Spent: 20m (was: 10m)
> CassandraIO.read() should use builder's keyspace by default
> -----------------------------------------------------------
>
> Key: BEAM-6078
> URL: https://issues.apache.org/jira/browse/BEAM-6078
> Project: Beam
> Issue Type: Improvement
> Components: io-java-cassandra
> Reporter: Fabien Rousseau
> Assignee: Fabien Rousseau
> Priority: Minor
> Fix For: 2.9.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Currently for CassandraIO.read(), it connects to the cluster without using
> the keyspace specified in the builder. (For writes it already does this).
> This would allow to not specify the keyspace in the mapped object (it can be
> useful if the object is used in more than one keyspace).
> I'll provide a PR shortly
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)