Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
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:
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
Labels: enhancement,
Created at: Mon Oct 28 17:54:32 CET 2013
State: open