Cannot subtract infinite timestamps?
What does this mean?
[Vertica]VJDBC ERROR: Cannot subtract infinite timestamps
It's being caused by this line:
where datediff(day, "D_TIME_for_AR_by_AR_DOC_Date"."CALENDAR_DT", CURRENT_DATE) BETWEEN 1 AND 364
null values shouldn't break datediff, correct?
0
Comments
It's not NULL values that are giving you grief. The problem is you can not use a date function like DATEDIFF with "infinite" values!
Example:
Possible work around: