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

    https://github.com/apache/drill/pull/501#discussion_r66120908
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/ScanBatch.java 
---
    @@ -196,8 +196,8 @@ public IterOutcome next() {
                 releaseAssets();
                 done = true;  // have any future call to next() return NONE
     
    -            if (mutator.isNewSchema()) {
    -              // This last reader has a new schema (e.g., we have a 
zero-row
    +            if (mutator.isNewTopLevelSchema()) {
    --- End diff --
    
    This method was added for the purpose to make count on map even when deeper 
schema (child fields of map) was changed. But now I  noticed that even simple 
select query on Map with different deeper (child) schema doesn't work. That's 
why no need in this method.
    I returned to isNewShema method.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to