DATE criteria for DV query isn't pushed to MSSQL Server

Solution Verified - Updated -

Issue

  • See the below message in DV server.log when using criteria with a FORMATDATE:
11:12:49,211 DEBUG [org.teiid.PLANNER] (Worker1_QueryProcessorQueue73) [QueryAnnotation<Relational Planner, LOW,formattimestamp literal parse 'yyyy-MM-dd' not supported by source src_sqlserver,formattimestamp(convert(table.datecol, timestamp), 'yyyy-MM-dd') was not pushed>

Environment

  • Red Hat JBoss Data Virtualization (DV) 6.2
  • Query using literal date format in criteria:
...WHERE FORMATDATE(table.datecol, 'yyyy-MM-dd') = CURDATE()

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.