You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2021/11/12 10:47:31 UTC

[GitHub] [ignite-3] ygerzhedovich commented on a change in pull request #435: IGNITE-14484 Implement RecordView API.

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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org