File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/scala/com/datastax/cdm/job Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,10 @@ abstract class BasePartitionJob extends BaseJob[SplitPartitions.Partition] {
25
25
26
26
override def getParts (pieces : Int ): util.Collection [SplitPartitions .Partition ] = {
27
27
var keyspaceTable : Option [String ] = Option (propertyHelper.getString(KnownProperties .TARGET_KEYSPACE_TABLE ))
28
+ .filter(_.nonEmpty)
28
29
.orElse(Option (propertyHelper.getString(KnownProperties .ORIGIN_KEYSPACE_TABLE )))
29
30
30
- val keyspaceTableValue : String = keyspaceTable.getOrElse {
31
+ var keyspaceTableValue : String = keyspaceTable.getOrElse {
31
32
throw new RuntimeException (" Both " + KnownProperties .TARGET_KEYSPACE_TABLE + " and "
32
33
+ KnownProperties .ORIGIN_KEYSPACE_TABLE + " properties are missing." )
33
34
}
You can’t perform that action at this time.
0 commit comments