[teiid-issues] [JBoss JIRA] (TEIID-5973) wrong type info for EPOCH return value
Steven Hawkins (Jira)
issues at jboss.org
Mon Jun 15 08:25:01 EDT 2020
[ https://issues.redhat.com/browse/TEIID-5973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steven Hawkins updated TEIID-5973:
----------------------------------
Component/s: Query Engine
Fix Version/s: 15.0
13.1.2
14.0.1
Original Estimate: 45 minutes
Remaining Estimate: 45 minutes
Story Points: 0.1
Sprint: DV Sprint 65
> wrong type info for EPOCH return value
> --------------------------------------
>
> Key: TEIID-5973
> URL: https://issues.redhat.com/browse/TEIID-5973
> Project: Teiid
> Issue Type: Enhancement
> Components: Query Engine
> Affects Versions: 14.0
> Reporter: Ken Geis
> Assignee: Steven Hawkins
> Priority: Major
> Fix For: 15.0, 13.1.2, 14.0.1
>
> Original Estimate: 45 minutes
> Remaining Estimate: 45 minutes
>
> The documentation states that EPOCH(..) and EXTRACT(EPOCH FROM ..) return double. I should be able to perform calculations on those. For example, I should be able to find the number of seconds since the epoch with
> {code:sql}
> SELECT EPOCH(NOW()) / 1000;
> {code}
> However, this query produces the error
> {noformat}
> TEIID30070 The function '(EPOCH(NOW()) / 1000)' is a valid function form, but the arguments do not match a known type signature and cannot be converted using implicit type conversions.{noformat}
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the teiid-issues
mailing list