Return-Path: X-Original-To: apmail-metamodel-dev-archive@minotaur.apache.org Delivered-To: apmail-metamodel-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E214117BFE for ; Tue, 31 Mar 2015 10:08:52 +0000 (UTC) Received: (qmail 55234 invoked by uid 500); 31 Mar 2015 10:08:52 -0000 Delivered-To: apmail-metamodel-dev-archive@metamodel.apache.org Received: (qmail 55198 invoked by uid 500); 31 Mar 2015 10:08:52 -0000 Mailing-List: contact dev-help@metamodel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@metamodel.apache.org Delivered-To: mailing list dev@metamodel.apache.org Received: (qmail 55186 invoked by uid 99); 31 Mar 2015 10:08:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Mar 2015 10:08:52 +0000 Date: Tue, 31 Mar 2015 10:08:52 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@metamodel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (METAMODEL-128) Ordering on aggregation value not working MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/METAMODEL-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14388340#comment-14388340 ] ASF GitHub Bot commented on METAMODEL-128: ------------------------------------------ Github user narahari92 commented on the pull request: https://github.com/apache/metamodel/pull/13#issuecomment-88024935 SELECT... FROM (SELECT name as n FROM ...) as q where n='foo'; is perfectly valid but will fail if we don't consider select items of other clauses if and when we support sub queries for from and where clause in MetaModel. > 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)