You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Vladimir Sitnikov (JIRA)" <ji...@apache.org> on 2014/12/15 10:01:13 UTC

[jira] [Updated] (CALCITE-71) Provide a way to declare that tables are sorted

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

Vladimir Sitnikov updated CALCITE-71:
-------------------------------------
    Description: 
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


  was:
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:

```java
interface Statistic {
  List<List<FieldCollation>> getSortKeys();

  class FieldCollation {
    int field;
    Direction direction;
  }

  enum Direction {
    ASC,
    DESC
  }
}
```

Also provide a way to declare that a CSV file is sorted on particular fields. E.g.

```
DEPTNO:int:sort0$ASC,NAME:string
10,"Sales"
20,"Marketing"
30,"Accounts"
```

---------------- 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



> 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
>
> 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)