anchor.diff:          #riak_sel_clause_v1{ initial_state = [0, 0] },
           Select
       ).
  +
  +select_negation_test() ->
  +    DDL = get_sel_ddl(),
  +    SQL = "SELECT -1, - 1, -1.0, - 1.0, -mydouble, - mydouble from mytab "
  +        "WHERE myfamily = 'familyX' AND myseries = 'seriesX' "
  +        "AND time > 1 AND time < 2",
  +    {ok, Rec} = get_query(SQL),
  +    {ok, Sel} = compile_select_clause(DDL, Rec),
  +    ?assertMatch(#riak_sel_clause_v1{calc_type        = rows,
  +                                     col_return_types = [
  +                                                         sint64,
  +                                                         sint64,
  +                                                         double,
  +                                                         double,
  +                                                         double,
  +                                                         double
  +                                                        ],
  +                                     col_names        = [
  +                                                         <<"1+2.0-3/4*5">>
  +                                                        ]
  +                                    },
  +                 Sel).
   
   % basic_select_window_agg_fn_arith_1_test() ->
   %     {ok, Rec} = get_query(
  
positive.code: 
  %%
  compile_select_clause(DDL, #riak_sql_v1{'SELECT' = #riak_sel_clause_v1{ clause = Sel } } = Q) ->
      CompileColFn = 
          fun(ColX, AccX) ->
              select_column_clause_folder(DDL, ColX, AccX)
          end,
  
negative.code:     {ok, Rec} = get_query(SQL),
      {ok, Sel} = compile_select_clause(get_sel_ddl(), Rec),
      ?assertMatch(
          #riak_sel_clause_v1{
              calc_type = rows,
              col_return_types = [double],
              col_names = [<<"((1+2.0)-((3/4)*5))">>] },
  