ygerzhedovich commented on code in PR #3583:
URL: https://github.com/apache/ignite-3/pull/3583#discussion_r1562377339


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/exec/UpdatableTableImpl.java:
##########
@@ -349,4 +357,25 @@ private static RuntimeException 
conflictKeysException(List<String> conflictKeys)
     private interface PartitionExtractor {
         int fromRow(BinaryRowEx row);
     }
+
+    private <RowT> void validateNotNullConstraint(RowHandler<RowT> rowHandler, 
List<RowT> rows) {
+        for (RowT row : rows) {
+            validateNotNullConstraint(rowHandler, row);
+        }
+    }
+
+    private <RowT> void validateNotNullConstraint(RowHandler<RowT> rowHandler, 
RowT row) {
+        for (int i = 0; i < desc.columnsCount(); i++) {

Review Comment:
   Let's run benchmark, it looks a little bit not optimal.
   Can we check which column is not nulable, keep the information and just 
after it start checking all required values for each rows?



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

Reply via email to