Github user kaspersorensen commented on the pull request:

    https://github.com/apache/metamodel/pull/82#issuecomment-165522630
  
    Hi Alberto,
    
    OK let me try to see if I can guide you on the way. For me this is also a 
bit uncertain how we fix it, but I can show you at least where the problem lies 
and then we might contemplate ways to fix.
    
    If you look at QueryPostprocessDataContext you will find a fairly big 
method, ```executeQuery(Query)```, which handles the first stuff about 
identifying the select items (each representing a column - or so we thought) to 
include from each queried table. If you look at line 185 the final 
"workSelectItems" is assembled for this.
    
    Now the "issue" (as I see it) is that each select item may represent 1+n 
columns. And in line 192 we call materializeFromItem(...) with this list. So 
either we fix it in the materializeFromItem method, or maybe even before we go 
there. This is at list kind of the "hot spot" for debugging it.


---
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