That's because you've implemented the trim function earlier (while 
before it wasn't). :-) Can you change the function to some function that 
wouldn't be implemented.

Thanks,

     James

On 02/21/2013 09:03 PM, Tony Huang wrote:
>
> In src/test/java/com/salesforce/phoenix/parse/QueryParserTest.java:
>
> > @@ -294,7 +294,8 @@ public void testUnknownFunction() throws Exception {
> >              parser.parseStatement();
> >              fail();
> >          } catch (SQLException e) {
> > -            // expected
> > +            // Is this the right message to expect?
> > +            assertTrue(e.getMessage(), e.getMessage().contains("ERROR 603 (42P00): Syntax error. Unexpected input. Expecting \"EOF\", got \")\" at line 6, column 26."));
>
> This method is supposed to test Unknown function. But the error 
> message does not imply it is testing the right thing.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/forcedotcom/phoenix/pull/66/files#r3111694>.
>