ygerzhedovich commented on a change in pull request #435:
URL: https://github.com/apache/ignite-3/pull/435#discussion_r748153418



##########
File path: 
modules/api/src/main/java/org/apache/ignite/table/mapper/MapperBuilder.java
##########
@@ -102,11 +105,24 @@
      * Builds mapper.
      *
      * @return Mapper.
+     * @throws IllegalStateException if nothing were mapped or more than one 
column were mapped to the same field.
      */
     public Mapper<T> build() {
-        Map<String, String> mapping = this.mapping;
+        if (columnToFields.isEmpty()) {
+            throw new IllegalStateException("Empty mapping doen't allowed.");

Review comment:
       ```suggestion
               throw new IllegalStateException("Empty mapping doesn't 
allowed.");
   ```




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