We recently upgraded to RS2.2.2-5639 to take advantage of the new pivoting feature, but have run into a severe problem that makes it almost impossible to use.
If we take a working dynamic list with DATE parameters, and pivot it, we get errors similar to the following:
SELECT
{Hierarchize({[SaleDate].[sale_date].Members})} ON COLUMNS,
{Hierarchize({[Campaign].[campaign_type].Members})} ON ROWS
FROM [GenericDynaListCube]
Oct 12, 2015 10:06:29 AM net.datenwerke.rs.saiku.service.saiku.OlapQueryServiceImpl execute
INFO: runId:39 Exception: MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '! and !2!
AND product_code != 'VERI'
GROUP BY sale_date, campaign_type
UNION
SEL' at line 28
Oct 12, 2015 10:06:29 AM net.datenwerke.rs.saiku.server.rest.resources.QueryResource execute
SEVERE: Cannot execute query (928FBC91-74EA-78AB-9941-1CACBB12ABB6)
org.saiku.service.util.exception.SaikuServiceException: runId:39 Can't execute query: 928FBC91-74EA-78AB-9941-1CACBB12ABB6
The problem only occurs with DATE parameters. If we change the parameter to type TEXT, it works perfectly. But this isn’t ideal since we cannot rely on end-users entering correctly formatted dates.
Another example with a different query:
MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '! and !3! group by cl.agentid, cr.digiacrcategory,cl.callresultstring, cr.callre' at line 7
This issue occurs with all instances of reports with data parameters and seems to have something to do with date variable substitution in the underlying SQL query.