anchor.diff:  
   key_length(#key_v1{ast = AST}) ->
       length(AST).
  +
  +local_key_field_orders(FieldOrders, PK) ->
  +    lists:nthtail(key_length(PK), FieldOrders).
   
   %% Calulate the final result for an aggregate.
   -spec finalise_aggregate(#riak_sel_clause_v1{}, [any()]) -> [any()].
  
positive.code:                 WhereProps2 = check_where_clause_is_possible(DDL, WhereProps1),
                  WhereProps3 = rewrite_where_with_additional_filters(
                      Mod:additional_local_key_fields(),
                      fun Mod:get_field_type/1,
                      WhereProps2),
                  {true, WhereProps3};
  
negative.code:          {start_inclusive, true}],
          rewrite_where_with_additional_filters(
              [<<"a">>],
              [ascending],
              fun([<<"a">>]) -> sint64 end,
              [{startkey,[{<<"c">>,timestamp,5500}]},
               {endkey,  [{<<"c">>,timestamp,5000}]},
  