kkhatua commented on a change in pull request #1371: DRILL-6588: Make Sys
tables of nullable datatypes
URL: https://github.com/apache/drill/pull/1371#discussion_r201527356
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/store/pojo/PojoDataType.java
##########
@@ -48,6 +49,11 @@ public PojoDataType(Class<?> pojoClass) {
Class<?> type = f.getType();
names.add(f.getName());
+ //Look up @Nullability for nullable property
+ Nullability nullability = f.getDeclaredAnnotation(Nullability.class);
+ nullables.add(nullability == null ? //Absence of annotation =>
(isNullable=true)
Review comment:
It seemed very verbose, but that makes sense. I'll make this change.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services