frankgh commented on code in PR #109: URL: https://github.com/apache/cassandra-analytics/pull/109#discussion_r2096092205
########## cassandra-analytics-core/src/main/java/org/apache/cassandra/spark/bulkwriter/RecordWriter.java: ########## @@ -380,28 +382,69 @@ private Map<String, Object> getBindValuesForColumns(Map<String, Object> map, Str { Preconditions.checkArgument(values.length == columnNames.length, "Number of values does not match the number of columns " + values.length + ", " + columnNames.length); + for (int i = 0; i < columnNames.length; i++) { - map.put(columnNames[i], maybeConvertUdt(values[i])); + if (cqlTable().containsUdt(columnNames[i])) Review Comment: I think we want to avoid having a call to a method in a tight loop. So it's better to get a reference of this variable before the loop -- 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: commits-unsubscr...@cassandra.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org