| 138 | } |
| 139 | |
| 140 | bool NodeInsertExecutor::checkConflict(const Transaction* transaction) const { |
| 141 | if (info.conflictAction == ConflictAction::ON_CONFLICT_DO_NOTHING) { |
| 142 | auto offset = |
| 143 | tableInfo.table->validateUniquenessConstraint(transaction, tableInfo.columnDataVectors); |
| 144 | if (offset != INVALID_OFFSET) { |
| 145 | // Conflict. Skip insertion. |
| 146 | info.updateNodeID({offset, tableInfo.table->getTableID()}); |
| 147 | return true; |
| 148 | } |
| 149 | } |
| 150 | return false; |
| 151 | } |
| 152 | |
| 153 | void RelInsertInfo::init(const ResultSet& resultSet) { |
| 154 | srcNodeIDVector = resultSet.getValueVector(srcNodeIDPos).get(); |
nothing calls this directly
no test coverage detected