You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by Apache Wiki <wi...@apache.org> on 2007/07/20 02:53:11 UTC

[Db-derby Wiki] Trivial Update of "OLAPNullOrdering" by BryanPendleton

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The following page has been changed by BryanPendleton:
http://wiki.apache.org/db-derby/OLAPNullOrdering

------------------------------------------------------------------------------
  There are several parts to implementing the <null ordering> feature for Derby:
  
   * The new syntax must be added to the SQL grammar
-  * The null ordering specification must be passed around through the compiler data structures so that it eventually gets passed to the sorter
+  * The null ordering specification must be passed around through the compiler data structures so that it eventually gets passed to the sorter. This involves data structures like {{{OrderByList}}} and {{{OrderByColumn}}}. Eventually, the compiler must set up the correct {{{ColumnOrdering}}} objects, which I think happens in {{{RowOrderingImpl.addOrderedColumn}}}
   * The sorter must be changed so that in addition to having a columnOrderingMap and a columnOrderingAscendingMap, it also has a columnOrderingNullOrderingMap, where it records the NULLS FIRST or NULLS LAST specification for each column in the sort.
   * The sorter must pass the user's choice to the DataValueDescriptor.compare() method call.
   * The DataValueDescriptor.compare(DataValueDescriptor other) method must be changed to allow the null ordering choice to be passed in