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

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

Github user narahari92 commented on the pull request:

    https://github.com/apache/metamodel/pull/13#issuecomment-88341746
  
    We can also use subqueries in where clause. I successfully executed below 
query.
    
    Query query = context.parseQuery("select username from AMASS_USER where 
password in (select password from AMASS_USER where enabled=1)");
    
    Considering all the places where we can have alias name for columns 
wouldn't it be better to have the getAllSelectItems() method. Or shall I still 
remove the method and use only items from select clause.


> Ordering on aggregation value not working
> -----------------------------------------
>
>                 Key: METAMODEL-128
>                 URL: https://issues.apache.org/jira/browse/METAMODEL-128
>             Project: Apache MetaModel
>          Issue Type: Bug
>    Affects Versions: 4.3.2
>            Reporter: Ashish Mukherjee
>
> I am using a CSV Data Context example with multiple fields - occurrences, 
> first_name, last_name. 
> The query -
> SELECT SUM(persons.csv.occurrences) AS X, persons.csv.first_name FROM 
> ashish.persons.csv GROUP BY persons.csv.first_name ORDER BY X
> This query always orders the results by first_name and not the aggregation 
> value.



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

Reply via email to