Github user MitchelLabonte commented on the issue: https://github.com/apache/drill/pull/1068 @vvysotskyi This is happening because the type is cached as a json object from the previous row. The fix is similar to the getFieldIdIfMatches() method so it looks like this is intended behaviour. As you can see in the unit test, the results are what is expected after the fix. I am not sure what else could be done.
---