[JBoss JIRA] (TEIID-2984) MongoDB: Usage of function "mod()" in SQL query throws an exception
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-2984?page=com.atlassian.jira.plugin... ]
Steven Hawkins closed TEIID-2984.
---------------------------------
> MongoDB: Usage of function "mod()" in SQL query throws an exception
> -------------------------------------------------------------------
>
> Key: TEIID-2984
> URL: https://issues.jboss.org/browse/TEIID-2984
> Project: Teiid
> Issue Type: Bug
> Components: Misc. Connectors
> Affects Versions: 8.4.1
> Reporter: Filip Elias
> Assignee: Ramesh Reddy
> Fix For: 8.8, 8.7.1
>
> Attachments: server.log
>
>
> Exception[1] is thrown when function modulo(mod) is used in SQL query.
> Sample query:
> SELECT LongNum, 11, MOD(LongNum, 11) FROM BQT1.SmallA ORDER BY LONGNUM
> Server log is in the attachment.
> [1] 16:36:59,645 ERROR [org.teiid.CONNECTOR] (Worker10_QueryProcessorQueue71) Connector worker process failed for atomic-request=hRCP8hHjrmZb.25.0.13: com.mongodb.CommandFailureException: { "serverUsed" : "localhost/127.0.0.1:27017" , "errmsg" : "exception: disallowed field type Array in object expression (at 'mod')" , "code" : 15992 , "ok" : 0.0}
> at com.mongodb.CommandResult.getException(CommandResult.java:71)
> at com.mongodb.CommandResult.throwOnError(CommandResult.java:110)
> at com.mongodb.DBCollection.aggregate(DBCollection.java:1308)
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
10 years, 12 months
[JBoss JIRA] (TEIID-2987) MongoDB: No rows are returned when a function is used in a where clause
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-2987?page=com.atlassian.jira.plugin... ]
Steven Hawkins closed TEIID-2987.
---------------------------------
> MongoDB: No rows are returned when a function is used in a where clause
> -----------------------------------------------------------------------
>
> Key: TEIID-2987
> URL: https://issues.jboss.org/browse/TEIID-2987
> Project: Teiid
> Issue Type: Bug
> Components: Misc. Connectors
> Affects Versions: 8.4.1
> Environment: Teiid 8.4.1
> Reporter: Filip Elias
> Assignee: Ramesh Reddy
> Labels: Beta1
> Fix For: 8.8, 8.7.1
>
>
> Teiid will return no rows when a function which is pushed down is used in a where clause.
> These queries should return few rows, but the result is empty:
> Query:
> {code}
> SELECT intkey, stringnum FROM BQT1.SmallA WHERE concat(stringkey, stringnum) = '7-17' ORDER BY intkey
> {code}
> Generated mongo command:
> {code}
> {aggregate: "smalla", pipeline: [ { $match: { _m0: "7-17" } }, { $project: { c_0: "$INTKEY", c_1: "$STRINGNUM" } }, { $sort: { c_0: 1 } } ] }
> {code}
> Query:
> {code}
> select intKey from bqt1.smalla where intKey+intKey >20
> {code}
> Generated mongo command:
> {code}
> {aggregate: "smalla", pipeline: [ { $match: { _m0: { $gt: 20 } } }, { $project: { _m1: "$INTKEY" } } ] }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
10 years, 12 months
[JBoss JIRA] (TEIID-3115) Invalid Query With OrderBy in SubQuery Table
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-3115?page=com.atlassian.jira.plugin... ]
Steven Hawkins closed TEIID-3115.
---------------------------------
> Invalid Query With OrderBy in SubQuery Table
> --------------------------------------------
>
> Key: TEIID-3115
> URL: https://issues.jboss.org/browse/TEIID-3115
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 8.8
> Reporter: Joseph CHIDIAC
> Assignee: Steven Hawkins
> Fix For: 8.7.1, 8.9
>
>
> Hi, I'm using Teiid Embedded Server , i tried to execute the Following query :
>
> SELECT jiraissue.issuetype
> FROM imOrganizationjiraissue jiraissue
> LEFT OUTER JOIN
> (SELECT jiraissue_sub.issuetype AS jiraissue_issuetype,
> AVG(
> TIMESTAMPDIFF(SQL_TSI_DAY,
> jiraissue_sub.CREATED,
> jiraissue_sub.RESOLUTIONDATE))
> AS CalculatedField
> FROM jiraissue jiraissue_sub
> GROUP BY jiraissue_sub.issuetype
> ORDER BY AVG(
> TIMESTAMPDIFF(SQL_TSI_DAY,
> jiraissue_sub.CREATED,
> jiraissue_sub.RESOLUTIONDATE)) ASC
> LIMIT 2) j_Sub
> ON jiraissue.issuetype = j_Sub.jiraissue_issuetype
>
> i verified the query sent to the JDBC [JDBCQueryExecution.java]
> SELECT g_0.issuetype
> FROM JIRADB.dbo.jiraissue g_0
> LEFT OUTER JOIN (
> SELECT TOP 2 g_1.issuetype AS c_0
> FROM JIRADB.dbo.jiraissue g_1
> GROUP BY g_1.issuetype
> ORDER BY anon_grp0.agg0
> ) v_0
> ON g_0.issuetype = v_0.c_0
>
> i got the following exception :
>
> java.sql.SQLException: The multi-part identifier "anon_grp0.agg0" could not be bound
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
10 years, 12 months