anchor.diff:            "SELECT SUM(location) FROM GeoCheckin "
             "WHERE time > 5000 AND time < 10000"
             "AND user = 'user_1' AND location = 'derby'"),
  -    ?assertEqual(
  -        {error, [{invalid_function_call,'SUM',[varchar]}]},
  +    io:format(user, "~p", [compile(get_standard_ddl(), Q, 100)]),
  +    ?assertEqual(
  +        {error,{invalid_query,<<"\nFunction 'SUM' called with arguments of the wrong type [varchar].">>}},
           compile(get_standard_ddl(), Q, 100)
       ).
   
  
positive.code:           "SELECT SUM(location), AVG(location) FROM GeoCheckin "
            "WHERE time > 5000 AND time < 10000"
            "AND user = 'user_1' AND location = 'derby'"),
      ?assertEqual(
          {error, [
              {invalid_function_call,'SUM',[varchar]},
              {invalid_function_call,'AVG',[varchar]}]},
          compile(get_standard_ddl(), Q, 100)
      ).
  
  
negative.code:           "WHERE time > 5000 AND time < 10000"
            "AND user = 'user_1' AND location = 'derby'"),
      ?assertEqual(
          {error,{invalid_query,<<"\nOperator '+' called with mismatched types [varchar vs sint64].">>}},
          compile(get_standard_ddl(), Q, 100)
      ).
  
  