Hi Folks,
I created a Data Module using DB2 BLU (columnar mode) tables.
When activating the Relative Time into my Time Dimension I got this error:
Data source adapter error: com.ibm.db2.jcc.am.SqlSyntaxErrorException: No authorized routine named "TIMESTAMP" of type "FUNCTION" having compatible arguments was found.. SQLCODE=-440, SQLSTATE=42884, DRIVER=3.71.22
This is the query using only the Time Dimension filtering Current Month:
SELECT DISTINCT
"TIME_1"."PERIOD_NAME" AS "Period_Name",
"TIME_1"."BUSINESS_DATE" AS "Business_Date"
FROM
"D_W"."TIME" "TIME_1"
WHERE
"TIME_1"."BUSINESS_DATE" >= timestamp(DATE('2019-09-01'),'00:00:00') AND
"TIME_1"."BUSINESS_DATE" < timestamp(DATE('2019-10-01'),'00:00:00') FOR FETCH ONLY
Even running the query directly into DB2 console it fails, but if I remove the ,'00:00:00' from the query it runs perfectly.
Did anyone have this same error before? Do you think I should change the syntax of the filter into my Data Module or is it something wrong in my DB2 environment?
Thank you!
------------------------------
Vitor Flisch Cavalanti
------------------------------
#CognosAnalyticswithWatson