Formattimestamp() against the view model which uses a source model for Oracle DB throws TEIID30504

Solution Verified - Updated -

Issue

  • There is a source model which uses Oracle DB
  • query to the source model which includes Formattimestamp() will throw TEIID30504
 [java] org.teiid.jdbc.TeiidSQLException: Error Code:TEIID30504 Message:Remote org.teiid.core.TeiidProcessingException: TEIID30504 oracle_oracleProfile: 904 TEIID11008:TEIID11004 Error executing statement(s): [Prepared Values: [] SQL: SELECT TO_CHAR(cast(g_0."DUE" AS timestamp), YYYY/MM/DD) FROM "JBOSS"."HFURUICH_01313002" g_0]
 ~
 [java] Caused by: java.sql.SQLSyntaxErrorException: Remote java.sql.SQLSyntaxErrorException: ORA-00904: "DD": invalid identifier

Environment

  • Red Hat JBoss Data Virtualization
    • 6.0.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.