Do not parse unusable JEP functions in dynamic queries
There are various types of dynamic queries, eg.
DynamicExtraValueQuery, etc... The
BioAssaySetUtil contains functions for parsing a JEP expressions into Query API Restricion:s and Expression:s. The problem is that it registers a lot of custom functions that may or may not be applicable to a specific query. For example, The 'raw()' function can't be used with a
DynamicPositionQuery. It results in a error like:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'raw.position' in 'field list'
It would be better if this error was catched by the parser instead of having the Query API generate invalid SQL.