[ 
https://issues.apache.org/jira/browse/CALCITE-71?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Hyde resolved CALCITE-71.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 1.1.0-incubating

Fixed in 
http://git-wip-us.apache.org/repos/asf/incubator-calcite/commit/2709896e.

> Provide a way to declare that tables are sorted
> -----------------------------------------------
>
>                 Key: CALCITE-71
>                 URL: https://issues.apache.org/jira/browse/CALCITE-71
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: GitHub Import
>            Assignee: Julian Hyde
>              Labels: github-import
>             Fix For: 1.1.0-incubating
>
>
> Provide a way to declare that an external table is sorted. Then the planner 
> will be able to choose algorithms that exploit that.
> We could extend interface Statistic:
> {code:java}
> interface Statistic {
>   List<List<FieldCollation>> getSortKeys();
>   class FieldCollation {
>     int field;
>     Direction direction;
>   }
>   enum Direction {
>     ASC,
>     DESC
>   }
> }
> {code}
> Also provide a way to declare that a CSV file is sorted on particular fields. 
> E.g.
> {noformat}
> DEPTNO:int:sort0$ASC,NAME:string
> 10,"Sales"
> 20,"Marketing"
> 30,"Accounts"
> {noformat}
> ---------------- Imported from GitHub ----------------
> Url: https://github.com/julianhyde/optiq/issues/71
> Created by: [julianhyde|https://github.com/julianhyde]
> Labels: enhancement, 
> Created at: Mon Oct 28 17:54:32 CET 2013
> State: open



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

Reply via email to