You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "James Taylor (JIRA)" <ji...@apache.org> on 2016/01/24 02:28:40 UTC
[jira] [Resolved] (PHOENIX-1848) Do not order rows in descending
order on ORDER BY of a column declared as DESC
[ https://issues.apache.org/jira/browse/PHOENIX-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Taylor resolved PHOENIX-1848.
-----------------------------------
Resolution: Fixed
Assignee: James Taylor
Fix Version/s: 4.6.0
This was fixed a while ago.
> Do not order rows in descending order on ORDER BY of a column declared as DESC
> ------------------------------------------------------------------------------
>
> Key: PHOENIX-1848
> URL: https://issues.apache.org/jira/browse/PHOENIX-1848
> Project: Phoenix
> Issue Type: Bug
> Reporter: James Taylor
> Assignee: James Taylor
> Fix For: 4.6.0
>
>
> With the following schema:
> {code}
> CREATE TABLE t (k VARCHAR NOT NULL, CONSTRAINT pk PRIMARY KEY (k DESC));
> {code}
> a query with an ORDER BY k should not output rows in descending order unless DESC is explicitly specified.
> For example, the following query should output rows A and then B:
> {code}
> UPSERT INTO t VALUES('A');
> UPSERT INTO t VALUES('B');
> SELECT * FROM t ORDER BY k;
> {code}
> while the following query should output B and then A:
> {code}
> SELECT * FROM t ORDER BY k DESC;
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)