File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/datastax/astra/migrate/cql Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ public boolean initialize() {
66
66
for (Featureset f : Featureset .values ()) {
67
67
if (f .toString ().startsWith ("TEST_" )) continue ; // Skip test features
68
68
Feature feature = getFeature (f );
69
- if (null != feature && feature . isEnabled ( ))
69
+ if (isFeatureEnabled ( f ))
70
70
feature .alterProperties (this .propertyHelper );
71
71
}
72
72
@@ -192,14 +192,14 @@ private String cqlTargetInsert() {
192
192
}
193
193
}
194
194
195
- if (featureMap . get (Featureset .CONSTANT_COLUMNS ). isEnabled ( )) {
195
+ if (isFeatureEnabled (Featureset .CONSTANT_COLUMNS )) {
196
196
insertBinds += "," + featureMap .get (Featureset .CONSTANT_COLUMNS ).getAsString (ConstantColumns .Property .COLUMN_VALUES );
197
197
}
198
198
199
199
targetInsertQuery = "INSERT INTO " +
200
200
getTargetKeyspaceTable () +
201
201
" (" + propertyHelper .getAsString (KnownProperties .TARGET_COLUMN_NAMES ) +
202
- (( featureMap . get ( Featureset .CONSTANT_COLUMNS ). isEnabled () ) ? "," + featureMap .get (Featureset .CONSTANT_COLUMNS ).getAsString (ConstantColumns .Property .COLUMN_NAMES ) : "" ) +
202
+ (isFeatureEnabled ( Featureset .CONSTANT_COLUMNS ) ? "," + featureMap .get (Featureset .CONSTANT_COLUMNS ).getAsString (ConstantColumns .Property .COLUMN_NAMES ) : "" ) +
203
203
") VALUES (" + insertBinds + ")" ;
204
204
if (null != getTtlCols () && !getTtlCols ().isEmpty ()) {
205
205
targetInsertQuery += " USING TTL ?" ;
You can’t perform that action at this time.
0 commit comments