Bug 1233212 - Oracle and postgres translators - date/time format letters are not translated correctly if pattern ends with non-pattern/non-letter character
Summary: Oracle and postgres translators - date/time format letters are not translated...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Virtualization 6
Classification: JBoss
Component: Teiid
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER3
: 6.2.0
Assignee: Van Halbert
QA Contact: Juraj Duráni
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-18 12:53 UTC by Juraj Duráni
Modified: 2016-02-10 08:48 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-10 08:48:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker TEIID-3547 0 Major Closed Oracle and postgres translators - date/time format letters are not translated correctly if pattern ends with non-pattern... 2016-05-03 15:46:34 UTC

Description Juraj Duráni 2015-06-18 12:53:15 UTC
Oracle translator seems to support translation of patterns from SimpleDateFormat to oracle's patterns [1], but not for all of them [2]. If Teiid is not able to translate format then it retrieves date/time/timestamp field and format it [2]. However, if pattern ends with non-pattern/non-letter character, pattern is translated only partially and passed to Oracle DB [3] - I have tried number, *, /, \, etc. Similar behavior with postgresql translator

[1]
Query: select formattimestamp(timestampvalue, 'y') from bqt1.smalla where intkey=1;
Source-specific command: SELECT TO_CHAR(g_0."TIMESTAMPVALUE", 'YYYY') FROM "DV"."SMALLA" g_0 WHERE trunc(g_0."INTKEY") = 1

[2]
Query: select formattimestamp(timestampvalue, 'D') from bqt1.smalla where intkey=1;
Source-specific command: SELECT g_0."TIMESTAMPVALUE" FROM "DV"."SMALLA" g_0 WHERE trunc(g_0."INTKEY") = 1

[3]
Query: select formattimestamp(timestampvalue, 'G-y-M-w-W-D-d-F-E-a-H-k-K-h-m-s') from bqt1.smalla where intkey=1;
Source-specific command: SELECT g_0."TIMESTAMPVALUE" FROM "DV"."SMALLA" g_0 WHERE trunc(g_0."INTKEY") = 1

Query: select formattimestamp(timestampvalue, 'G-y-M-w-W-D-d-F-E-a-H-k-K-h-m-s-') from bqt1.smalla where intkey=1;
Source-specific command: SELECT TO_CHAR(g_0."TIMESTAMPVALUE", 'AD-YYYY------Dy-AM------') FROM "DV"."SMALLA" g_0 WHERE trunc(g_0."INTKEY") = 1


Document URL: 

Section Number and Name: 

Describe the issue: 

Suggestions for improvement: 

Additional information:

Comment 1 JBoss JIRA Server 2015-06-18 13:09:17 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-3547 to Resolved

Comment 2 JBoss JIRA Server 2015-10-09 19:40:43 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-3547 to Closed


Note You need to log in before you can comment on or make changes to this bug.