[JBoss JIRA] (TEIID-3881) time date function doesn't return value without sorting
by Ivan Chan (JIRA)
[ https://issues.jboss.org/browse/TEIID-3881?page=com.atlassian.jira.plugin... ]
Ivan Chan commented on TEIID-3881:
----------------------------------
It seems like I made a mistake on my side. Sorry about it. Closing this issue now. Thanks for looking.
> time date function doesn't return value without sorting
> -------------------------------------------------------
>
> Key: TEIID-3881
> URL: https://issues.jboss.org/browse/TEIID-3881
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 8.12.3
> Environment: Teiid 8.12.3 and PostgreSQL 9.3.2
> Reporter: Ivan Chan
> Assignee: Steven Hawkins
> Labels: teiid-engine
>
> HOUR(), MINUTE(), SECOND(), DAYOFMONTH(), DAYOFWEEK(), DAYOFYEAR(), MONTH(),
> QUARTER(), WEEK(), YEAR() are returning null unless sql is ordered by date time function.
> Not working query:
> select MONTH("birth_date") as "MONTH_birth_date",
> MONTH("birth_date") as "Month_Field",
> "birth_date"
> from "FoodmartDataSource_public"."employee"
> order by "birth_date"
> limit 200001
> Working query:
> select MONTH("birth_date") as "MONTH_birth_date",
> MONTH("birth_date") as "Month_Field",
> "birth_date"
> from "FoodmartDataSource_public"."employee"
> order by "birth_date", "Month_Field"
> limit 200001
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 2 months
[JBoss JIRA] (TEIID-3881) time date function doesn't return value without sorting
by Ivan Chan (JIRA)
[ https://issues.jboss.org/browse/TEIID-3881?page=com.atlassian.jira.plugin... ]
Ivan Chan closed TEIID-3881.
----------------------------
Resolution: Done
> time date function doesn't return value without sorting
> -------------------------------------------------------
>
> Key: TEIID-3881
> URL: https://issues.jboss.org/browse/TEIID-3881
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 8.12.3
> Environment: Teiid 8.12.3 and PostgreSQL 9.3.2
> Reporter: Ivan Chan
> Assignee: Steven Hawkins
> Labels: teiid-engine
>
> HOUR(), MINUTE(), SECOND(), DAYOFMONTH(), DAYOFWEEK(), DAYOFYEAR(), MONTH(),
> QUARTER(), WEEK(), YEAR() are returning null unless sql is ordered by date time function.
> Not working query:
> select MONTH("birth_date") as "MONTH_birth_date",
> MONTH("birth_date") as "Month_Field",
> "birth_date"
> from "FoodmartDataSource_public"."employee"
> order by "birth_date"
> limit 200001
> Working query:
> select MONTH("birth_date") as "MONTH_birth_date",
> MONTH("birth_date") as "Month_Field",
> "birth_date"
> from "FoodmartDataSource_public"."employee"
> order by "birth_date", "Month_Field"
> limit 200001
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 2 months
[JBoss JIRA] (TEIID-3889) asynch start transaction / rollback throws exception
by Steven Hawkins (JIRA)
Steven Hawkins created TEIID-3889:
-------------------------------------
Summary: asynch start transaction / rollback throws exception
Key: TEIID-3889
URL: https://issues.jboss.org/browse/TEIID-3889
Project: Teiid
Issue Type: Bug
Components: JDBC Driver, Query Engine
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Fix For: 8.13, 8.12.4
If a local transaction is requested, but no statements are issued to start it, then a asynch rollback will go to the server side and throw an exception rather than simply toggling the autocommit flag.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 2 months
[JBoss JIRA] (TEIID-3888) Redshift - there is not function SUBSTR (RS uses SUBSTRING)
by Juraj Duráni (JIRA)
Juraj Duráni created TEIID-3888:
-----------------------------------
Summary: Redshift - there is not function SUBSTR (RS uses SUBSTRING)
Key: TEIID-3888
URL: https://issues.jboss.org/browse/TEIID-3888
Project: Teiid
Issue Type: Bug
Affects Versions: 8.12.3
Environment: driver - PostgreSQL 9.2
translator - postgresql
Reporter: Juraj Duráni
Assignee: Steven Hawkins
Postgresql translator uses SUBSTR function to get substring of string (e.g. function LEFT(x,y)), but Redshift does not support function SUBSTR. It support SUBSTRING function instead.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 2 months
[JBoss JIRA] (TEIID-3887) Redshift - RS does not support ASCII function
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/TEIID-3887?page=com.atlassian.jira.plugin... ]
RH Bugzilla Integration updated TEIID-3887:
-------------------------------------------
Bugzilla References: https://bugzilla.redhat.com/show_bug.cgi?id=1296583
Bugzilla Update: Perform
> Redshift - RS does not support ASCII function
> ----------------------------------------------
>
> Key: TEIID-3887
> URL: https://issues.jboss.org/browse/TEIID-3887
> Project: Teiid
> Issue Type: Bug
> Affects Versions: 8.12.3
> Environment: driver - PostgreSQL 9.2
> translator - postgresql
> Reporter: Juraj Duráni
> Assignee: Steven Hawkins
>
> Redshift database does not support ASCII function
> E.g. *SELECT INTKEY, ASCII(INTKEY) FROM BQT1.SmallA ORDER BY INTKEY* is translated as *SELECT g_0.intkey AS c_0, ascii(cast(g_0.intkey AS varchar(4000))) AS c_1 FROM smalla AS g_0 ORDER BY c_0*
> Result:
> {code:text}
> Caused by: org.postgresql.util.PSQLException: ERROR: Specified types or functions (one per INFO message) not supported on Redshift tables.
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 2 months
[JBoss JIRA] (TEIID-3887) Redshift - RS does not support ASCII function
by Juraj Duráni (JIRA)
Juraj Duráni created TEIID-3887:
-----------------------------------
Summary: Redshift - RS does not support ASCII function
Key: TEIID-3887
URL: https://issues.jboss.org/browse/TEIID-3887
Project: Teiid
Issue Type: Bug
Affects Versions: 8.12.3
Environment: driver - PostgreSQL 9.2
translator - postgresql
Reporter: Juraj Duráni
Assignee: Steven Hawkins
Redshift database does not support ASCII function
E.g. *SELECT INTKEY, ASCII(INTKEY) FROM BQT1.SmallA ORDER BY INTKEY* is translated as *SELECT g_0.intkey AS c_0, ascii(cast(g_0.intkey AS varchar(4000))) AS c_1 FROM smalla AS g_0 ORDER BY c_0*
Result:
{code:text}
Caused by: org.postgresql.util.PSQLException: ERROR: Specified types or functions (one per INFO message) not supported on Redshift tables.
{code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 2 months