In the teiid documentation the following definition is stated for the DayOfWeek function
Return day of week (Sunday=1, Saturday=7)
But when the teiid is pushed down to Oracle the dayOfWeek output differs depending on locale
US Locale
Sunday: 1
German Locale
Monday: 1
I investigated a bit and found the source query when translated to oracle and the DayOfWeek is translated to this to_number(TO_CHAR(g_0."DATE", 'D'))
. The to_char method in Oracle depends on the locale.
Is there an alternative to the DayOfWeek function or some sort of a workaround for this problem ?