Skip to content

Commit a2e5c68

Browse files
committed
fixing a copy-paste error in docs, and in value
1 parent 9a936b7 commit a2e5c68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/datastax/astra/migrate/CqlHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ private String cqlTargetSelectOriginByPK() {
196196
}
197197
}
198198

199-
return "SELECT " + propertyHelper.getAsString(KnownProperties.ORIGIN_COLUMN_NAMES) + " FROM " + getTargetKeyspaceTable() + " WHERE " + keyBinds;
199+
return "SELECT " + propertyHelper.getAsString(KnownProperties.TARGET_COLUMN_NAMES) + " FROM " + getTargetKeyspaceTable() + " WHERE " + keyBinds;
200200
}
201201

202202
public long getLargestWriteTimeStamp(Row row) {

src/main/java/datastax/astra/migrate/properties/PropertyHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ protected void loadSparkConf() {
244244
setProperty(KnownProperties.TARGET_COLUMN_NAMES, get(KnownProperties.ORIGIN_COLUMN_NAMES));
245245
}
246246

247-
// Target column list defaults to the source column list
247+
// Target column key list defaults to the first N columns of the source column list, where N is the size of the target primary key list
248248
if (null == get(KnownProperties.TARGET_PRIMARY_KEY_TYPES) || getAsString(KnownProperties.TARGET_PRIMARY_KEY_TYPES).isEmpty()) {
249249
if (null != getMigrationTypeList(KnownProperties.ORIGIN_COLUMN_TYPES) && !getMigrationTypeList(KnownProperties.ORIGIN_COLUMN_TYPES).isEmpty()) {
250250
List<MigrateDataType> targetPKTypes = getMigrationTypeList(KnownProperties.ORIGIN_COLUMN_TYPES).subList(0, getStringList(KnownProperties.TARGET_PRIMARY_KEY).size());

0 commit comments

Comments
 (0)