Merge pull request #576 from lizhanhui/master

Fix a few spelling errors and a function name typo in SQLEvalVisitorUtils#registerBaseFunctions
compatible for early versions
Merge pull request #578 from wenshao/master

compatible for early versions
Centralize constants definition