[ 
https://issues.apache.org/jira/browse/METAMODEL-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15062391#comment-15062391
 ] 

ASF GitHub Bot commented on METAMODEL-224:
------------------------------------------

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.


> Support CONCAT function
> -----------------------
>
>                 Key: METAMODEL-224
>                 URL: https://issues.apache.org/jira/browse/METAMODEL-224
>             Project: Apache MetaModel
>          Issue Type: New Feature
>            Reporter: Alberto
>            Priority: Minor
>
> As we now support scalar functions it would be great to add support for a 
> CONCAT function that allow us to concatenate and append strings to the query 
> results.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to