[teiid-issues] [JBoss JIRA] (TEIID-4221) HANA translator: incorrect pushdown of week function
RH Bugzilla Integration (JIRA)
issues at jboss.org
Fri Jun 3 17:08:00 EDT 2016
[ https://issues.jboss.org/browse/TEIID-4221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247908#comment-13247908 ]
RH Bugzilla Integration commented on TEIID-4221:
------------------------------------------------
Van Halbert <vhalbert at redhat.com> changed the Status of [bug 1339568|https://bugzilla.redhat.com/show_bug.cgi?id=1339568] from MODIFIED to ON_QA
> HANA translator: incorrect pushdown of week function
> ----------------------------------------------------
>
> Key: TEIID-4221
> URL: https://issues.jboss.org/browse/TEIID-4221
> Project: Teiid
> Issue Type: Bug
> Components: Misc. Connectors
> Affects Versions: 8.12.5
> Reporter: Jan Stastny
> Assignee: Steven Hawkins
> Fix For: 9.0, 8.12.5, 8.13.5
>
>
> Hana translator pushes down function week to SAP HANA datasource as its WEEK function. But it is not in accordance with the ISO8601 rule.
> For this standard, HANA has function ISOWEEK, which returns results in following format:
> {code:plain}
> 2000-W01 for date 'Jan 3, 2000'
> {code}
> So it should be possible to push Teiid's WEEK function as:
> {code:sql}
> SUBSTR_REGEXPR('[[:digit:]]{4}\-W([[:digit:]]{2})' IN ISOWEEK(datevalue) GROUP 1)
> {code}
> where 'datevalue' is column of DATE datatype.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the teiid-issues
mailing list