modify hsql to parse some extract timestamp field function, and add test...

... case to these functions
Yes, otherwise we couldn't extract(week_of_year from ts).