[JBoss JIRA] (TEIID-3388) Different null ordering for float and double numbers with RADIANS function (Oracle 12)
by Juraj Duráni (JIRA)
Juraj Duráni created TEIID-3388:
-----------------------------------
Summary: Different null ordering for float and double numbers with RADIANS function (Oracle 12)
Key: TEIID-3388
URL: https://issues.jboss.org/browse/TEIID-3388
Project: Teiid
Issue Type: Bug
Affects Versions: 8.7.1
Reporter: Juraj Duráni
Assignee: Steven Hawkins
Attachments: server_ora10.log, server_ora12.log
Queries:
1. SELECT RADIANS(DoubleNum) FROM BQT1.SmallA ORDER BY DoubleNum;
2. SELECT RADIANS(FloatNum) FROM BQT1.SmallA ORDER BY FloatNum;
Both queries return different null ordering. In case of DoubleNum nulls are first. In the second case nulls are last records.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 10 months
[JBoss JIRA] (TEIID-3385) ResultSetMetaData returns wrong column name after renaming (using AS)
by Juraj Duráni (JIRA)
[ https://issues.jboss.org/browse/TEIID-3385?page=com.atlassian.jira.plugin... ]
Juraj Duráni edited comment on TEIID-3385 at 3/18/15 3:09 AM:
--------------------------------------------------------------
Comment removed - misunderstanding.
was (Author: jdurani):
Yes I know that column label should be used. But I expect if I use AS clause to rename column in the result then ResultSetMetaData should return column's label that was declared in AS clause not original name of the column.
ResultSet rs = connection.prepareStatement("SELECT IntKey AS a FROM mytable").executeQuery();
ResultSetMetaData md = rs.getMetaData();
String name = md.getColumnName(1);
Now the variable 'name' contains "IntKey", but I think that it should contain "a".
> ResultSetMetaData returns wrong column name after renaming (using AS)
> ---------------------------------------------------------------------
>
> Key: TEIID-3385
> URL: https://issues.jboss.org/browse/TEIID-3385
> Project: Teiid
> Issue Type: Bug
> Affects Versions: 8.7.1
> Reporter: Juraj Duráni
> Assignee: Steven Hawkins
>
> Query: SELECT IntKey AS a FROM <table>;
> Issues:
> - ResultSetMetaData object returns name of the column "IntKey", but it should return "a".
> - method ResultSet.getString("IntKey") thows an exception (org.teiid.jdbc.TeiidSQLException: Column name "INTKEY" does not exist.), but ResultSet.getString("a") returns the correct result.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 10 months
[JBoss JIRA] (TEIID-3386) Mixed resutl with (double) full outer join and where clause
by Juraj Duráni (JIRA)
[ https://issues.jboss.org/browse/TEIID-3386?page=com.atlassian.jira.plugin... ]
Juraj Duráni updated TEIID-3386:
--------------------------------
Attachment: server.log
Server log in the attachment.
> Mixed resutl with (double) full outer join and where clause
> -----------------------------------------------------------
>
> Key: TEIID-3386
> URL: https://issues.jboss.org/browse/TEIID-3386
> Project: Teiid
> Issue Type: Bug
> Affects Versions: 8.7.1
> Reporter: Juraj Duráni
> Assignee: Steven Hawkins
> Attachments: server.log
>
>
> If a query contains double FULL OUTER JOIN and WHERE clause that contains condition on column from last table, teiid returns mixed result (underlying oracle10).
> Query:
> SELECT BQT1.SmallA.IntKey AS SmallA_IntKey, BQT2.MediumB.IntKey AS MediumB_IntKey, BQT2.LargeB.IntKey AS LargeB_IntKey
> FROM (BQT1.SmallA FULL OUTER JOIN BQT2.MediumB ON BQT1.SmallA.IntKey = BQT2.MediumB.IntKey) FULL OUTER JOIN BQT2.LargeB ON BQT2.MediumB.IntKey = BQT2.LargeB.IntKey
> WHERE BQT2.LargeB.IntKey < 1500 ORDER BY LargeB_IntKey, MediumB_IntKey, SmallA_IntKey;
> Actual result:
> 0 0 0
> 1 1 1
> 2 2 2
> 3 3 3
> ... ... ...
> 49 49 49
> 50 50 50
> ... ... ...
> 999 999 999
> <null> <null> 1000
> ... ... ...
> <null> <null> 1499
> Expected result:
> 0 0 0
> 1 1 1
> 2 2 2
> 3 3 3
> ... ... ...
> 49 49 49
> <null> 50 50
> ... ... ...
> 999 999 999
> <null> <null> 1000
> ... ... ...
> <null> <null> 1499
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 10 months
[JBoss JIRA] (TEIID-3385) ResultSetMetaData returns wrong column name after renaming (using AS)
by Juraj Duráni (JIRA)
[ https://issues.jboss.org/browse/TEIID-3385?page=com.atlassian.jira.plugin... ]
Juraj Duráni commented on TEIID-3385:
-------------------------------------
Yes I know that column label should be used. But I expect if I use AS clause to rename column in the result then ResultSetMetaData should return column's label that was declared in AS clause not original name of the column.
ResultSet rs = connection.prepareStatement("SELECT IntKey AS a FROM mytable").executeQuery();
ResultSetMetaData md = rs.getMetaData();
String name = md.getColumnName(1);
Now the variable 'name' contains "IntKey", but I think that it should contain "a".
> ResultSetMetaData returns wrong column name after renaming (using AS)
> ---------------------------------------------------------------------
>
> Key: TEIID-3385
> URL: https://issues.jboss.org/browse/TEIID-3385
> Project: Teiid
> Issue Type: Bug
> Affects Versions: 8.7.1
> Reporter: Juraj Duráni
> Assignee: Steven Hawkins
>
> Query: SELECT IntKey AS a FROM <table>;
> Issues:
> - ResultSetMetaData object returns name of the column "IntKey", but it should return "a".
> - method ResultSet.getString("IntKey") thows an exception (org.teiid.jdbc.TeiidSQLException: Column name "INTKEY" does not exist.), but ResultSet.getString("a") returns the correct result.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 10 months