jmckenzie-dev commented on code in PR #181:
URL: 
https://github.com/apache/cassandra-analytics/pull/181#discussion_r2926003334


##########
cassandra-analytics-core/src/main/java/org/apache/cassandra/spark/bulkwriter/BulkSparkConf.java:
##########
@@ -207,6 +208,7 @@ public BulkSparkConf(SparkConf conf, Map<String, String> 
options, @Nullable Logg
         this.ttl = MapUtils.getOrDefault(options, WriterOptions.TTL.name(), 
null);
         this.timestamp = MapUtils.getOrDefault(options, 
WriterOptions.TIMESTAMP.name(), null);
         this.quoteIdentifiers = MapUtils.getBoolean(options, 
WriterOptions.QUOTE_IDENTIFIERS.name(), false, "quote identifiers");
+        this.skipSecondaryIndexCheck = MapUtils.getBoolean(options, 
WriterOptions.SKIP_SECONDARY_INDEX_CHECK.name(), false, "skip secondary index 
check");

Review Comment:
   Good call; added:
   ```
           if (!skipSecondaryIndexCheck)
           {
               validateNoSecondaryIndexes(tableInfo);
           }
           else if (tableInfo.hasSecondaryIndex())
           {
               LOGGER.warn("Bulk writing to tables with SecondaryIndexes will 
have an asynchronous index rebuild "
                         + "take place automatically after writing. Reads 
against the index during this time "
                         + "window will produce inconsistent or stale results 
until index rebuild is complete.");
           }
   ```



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to