In our universe we have date objects, the data stored in this object at DB level is in ‘MM/dd/ HH:mm:ss’ format.
We are facing a issue with date object in webi, when used as a condition/filter with prompt and after selecting date from calendar. BO is applying date formatting.
Please find details in Scenario 1 and Scenario 2
Universe : Teradata
Object Details
Object Type : Date
Object Qualification : Dimension
Scenario 1
When we create report with date object in filter / condition Constant (without prompt) and update date from calendar the syntax is as below
BO Syntax
DATE_Object BETWEEN ‘2011/07/05 00:00:00’ AND ‘2011/07/06 00:00:00’
Teradata Syntax
DATE_Object BETWEEN ‘2011/07/05 00:00:00’ AND ‘2011/07/06 00:00:00’
Scenario 2
When we create report with date object in filter / condition and use prompt the syntax is as below
BO Syntax
DATE_Object BETWEEN {d ‘2011-07-05’} AND {d ‘2011-07-06’}
Teradata Syntax
DATE_Object BETWEEN (‘2011-07-05’(DATE,FORMAT ‘YYYY-MM-DD’)) AND (‘2011-07-06’(DATE,FORMAT ‘YYYY-MM-DD’))
In report condition when prompt is used, at BO SQL level date formatting is enforced and same is carried forward to DB level.
This is affecting query performance and is causing the Database to use very large amount of memory to execute this report.
Report execution time in Scenario 1 is 50 seconds approx and Scenario 2 is 4 minutes approx
I want the date format should be (‘2011-07-05’) AND (‘2011-07-06’) or (‘2011/07/05 00:00:00’ AND ‘2011/07/06 00:00:00’)
So can anyone suggest me how to avoid this date formatting
shashi_07 (BOB member since 2009-02-11)