Github user daveoshinsky commented on a diff in the pull request:

    https://github.com/apache/drill/pull/570#discussion_r161630462
  
    --- Diff: exec/java-exec/src/main/codegen/templates/SqlAccessors.java ---
    @@ -127,6 +127,25 @@ public String getString(int index) {
         }
           <#break>
     
    +    <#case "VarDecimal">
    +
    +    @Override
    +    public String getString(int index){
    +<#if mode=="Nullable">
    +        if(ac.isNull(index)){
    +          return null;
    +        }
    +</#if>
    +        try {
    --- End diff --
    
    When I remove the try/catch here, the build fails as follows.  So, I'm 
leaving it as is for the time being.
    [ERROR] 
C:\apache\Drill20180111\rebase6\drill\exec\java-exec\target\generated-sources\org\apache\drill\exec\vector\accessor\VarDecimalAccessor.java:[144,35]
 error: unreported exception InvalidAccessException; must be caught or declared 
to be thrown



---

Reply via email to