anchor.diff:      {ok, Rec} = get_query(SQL),
       {ok, Sel} = compile_select_clause(get_sel_ddl(), Rec),
       ?assertMatch(
  -        #riak_sel_clause_v1{ 
  +        #riak_sel_clause_v1{
               calc_type = rows,
               col_return_types = [double],
               col_names = [<<"((1+2.0)-((3/4)*5))">>] },
  
positive.code:         #riak_sel_clause_v1{ initial_state = [0, 0] },
          Select
      ).
  
  % basic_select_window_agg_fn_arith_1_test() ->
  %     {ok, Rec} = get_query(
  
negative.code: compile_select_col_stateless(DDL, {identifier, [<<"*">>]}) ->
      ColTypes = [X#riak_field_v1.type || X <- DDL#ddl_v1.fields],
      {ColTypes, true, fun(Row) -> Row end};
  compile_select_col_stateless(DDL, {negate, ExprToNegate}) ->
      {TypeToNegate, ValidityToNegate, ValueToNegate} =
          compile_select_col_stateless(DDL, ExprToNegate),
      NegatingFun = fun(Row) -> -ValueToNegate(Row) end,
      case ValidityToNegate of
          true ->
              {[TypeToNegate],
               ValidityToNegate,
               NegatingFun};
          _ -> {[], ValidityToNegate, []}
      end;
  compile_select_col_stateless(_, {Type, V})
    when Type == varchar; Type == boolean ->
      {[Type], true, fun(_) -> V end};
  %% TODO why is this integer not sint64?
  compile_select_col_stateless(_, {Type, V}) when Type == integer ->
  