[JBoss JIRA] (TEIID-5026) Add function to transform timestamp into Unix time
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-5026?page=com.atlassian.jira.plugin... ]
Steven Hawkins resolved TEIID-5026.
-----------------------------------
Resolution: Done
For 10.0 resolved with a breaking change to align the from_unixtime function to the definition used by hive/impala - which were the only sources marked as supporting the pushdown. Sources supporting timestampadd will no longer have a compensating version of from_unixtime pushed as it only supports integers and returns a timestamp, not a string.
Additionally unix_timestamp was added for the inverse operation - string to long. Neither function yet supports a format string, but rather assume the default format.
For those that may need conversion to and from milliseconds the related to_millis and from_millis.
> Add function to transform timestamp into Unix time
> --------------------------------------------------
>
> Key: TEIID-5026
> URL: https://issues.jboss.org/browse/TEIID-5026
> Project: Teiid
> Issue Type: Feature Request
> Components: Query Engine
> Reporter: Jan Stastny
> Assignee: Steven Hawkins
> Fix For: 10.0
>
>
> Teiid supports function FROM_UNIXTIME as a result of TEIID-248.
> There isn't its reverse counterpart though.
> This is an issue, when there is a data source which doesn't support timestamp/date/time data types:
> * users choose to use long(unix time) in the source
> * by using FROM_UNIXTIME function they transform the long value (unix time) into respective data type value in their virtual model
> * they can read such source.
> * they can't insert/update it as this would require 'INSTEAD OF TRIGGER' with ability to transform timestamp/time/date back to long value - Unix time. This part is missing.
> As an example could serve [MySQL's UNIX_TIMESTAMP|https://dev.mysql.com/doc/refman/5.5/en/date-and-time-func...]
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 7 months
[JBoss JIRA] (TEIID-4992) Add OSDQ set functions
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-4992?page=com.atlassian.jira.plugin... ]
Steven Hawkins commented on TEIID-4992:
---------------------------------------
It also appears that the cost of computing for large sets will be expensive since it's roughly an n^2 operation where a lot of temporary state is being created sets of all characters from each string.
> Add OSDQ set functions
> ----------------------
>
> Key: TEIID-4992
> URL: https://issues.jboss.org/browse/TEIID-4992
> Project: Teiid
> Issue Type: Enhancement
> Components: Query Engine
> Reporter: Steven Hawkins
> Assignee: Steven Hawkins
> Fix For: 10.0
>
> Attachments: SetUtil.java
>
>
> There will be a new osdq core library drop in maven central soon containing additional functions for Teiid to add.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 7 months
[JBoss JIRA] (TEIID-4992) Add OSDQ set functions
by vivek singh (JIRA)
[ https://issues.jboss.org/browse/TEIID-4992?page=com.atlassian.jira.plugin... ]
vivek singh commented on TEIID-4992:
------------------------------------
Thanks for pointing out. I will look into it.
regards,
Vivek
On Thu, Sep 7, 2017 at 5:42 AM, Steven Hawkins (JIRA) <issues(a)jboss.org>
--
reagrds,
Vivek
Author of "The Reverse Journey" from Frogbooks
> Add OSDQ set functions
> ----------------------
>
> Key: TEIID-4992
> URL: https://issues.jboss.org/browse/TEIID-4992
> Project: Teiid
> Issue Type: Enhancement
> Components: Query Engine
> Reporter: Steven Hawkins
> Assignee: Steven Hawkins
> Fix For: 10.0
>
> Attachments: SetUtil.java
>
>
> There will be a new osdq core library drop in maven central soon containing additional functions for Teiid to add.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 7 months