mneedham commented on a change in pull request #7792:
URL: https://github.com/apache/pinot/pull/7792#discussion_r752648384



##########
File path: 
pinot-common/src/test/java/org/apache/pinot/common/data/SchemaTest.java
##########
@@ -253,11 +254,27 @@ public void testSchemaBuilderAddTime() {
     Assert.assertEquals(schema11, schema12);
   }
 
+  @Test(expectedExceptions = 
com.fasterxml.jackson.databind.JsonMappingException.class,

Review comment:
       Done

##########
File path: pinot-spi/src/main/java/org/apache/pinot/spi/data/Schema.java
##########
@@ -213,6 +213,10 @@ public void addField(FieldSpec fieldSpec) {
         throw new UnsupportedOperationException("Unsupported field type: " + 
fieldType);
     }
 
+    if (fieldSpec.getDataType() == null) {
+      throw new UnsupportedOperationException(String.format("'%s' field is 
missing 'dataType' property", columnName));

Review comment:
       Oh, that's a cool idea, done!




-- 
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...@pinot.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to