[JBoss JIRA] (TEIID-3315) problem with function TRIM
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-3315?page=com.atlassian.jira.plugin... ]
Steven Hawkins resolved TEIID-3315.
-----------------------------------
Fix Version/s: 8.10
Resolution: Done
corrected the look ahead so that non-column reference expressions can be used as the only argument.
> problem with function TRIM
> --------------------------
>
> Key: TEIID-3315
> URL: https://issues.jboss.org/browse/TEIID-3315
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 7.7
> Reporter: Bram Gadeyne
> Assignee: Steven Hawkins
> Labels: stringfunction
> Fix For: 8.10
>
>
> I have a database that contains some columns with multiple values separated with comma . So I'm trying to use a combination of case, substring and trim to split these values into multiple colums.
> The following statement part does not work:
> case when pos2 = 0 then trim(substring(Description, pos1+1))
> end as bed
> TEIID31100 Parsing error: Encountered "+1)[*])[*] end as" at line 3, column 68.
> If I add ' ' FROM to the trim statement it does work and returns a correct result.
> working statement:
> case when pos2 = 0 then trim(' ' FROM substring(Description, pos1+1))
> end as bed
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
10 years, 1 month
[JBoss JIRA] (TEIID-3315) problem with function TRIM
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-3315?page=com.atlassian.jira.plugin... ]
Steven Hawkins updated TEIID-3315:
----------------------------------
Affects Version/s: 7.7
(was: 8.7)
> problem with function TRIM
> --------------------------
>
> Key: TEIID-3315
> URL: https://issues.jboss.org/browse/TEIID-3315
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 7.7
> Reporter: Bram Gadeyne
> Assignee: Steven Hawkins
> Labels: stringfunction
>
> I have a database that contains some columns with multiple values separated with comma . So I'm trying to use a combination of case, substring and trim to split these values into multiple colums.
> The following statement part does not work:
> case when pos2 = 0 then trim(substring(Description, pos1+1))
> end as bed
> TEIID31100 Parsing error: Encountered "+1)[*])[*] end as" at line 3, column 68.
> If I add ' ' FROM to the trim statement it does work and returns a correct result.
> working statement:
> case when pos2 = 0 then trim(' ' FROM substring(Description, pos1+1))
> end as bed
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
10 years, 1 month
[JBoss JIRA] (TEIID-3315) problem with function TRIM
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-3315?page=com.atlassian.jira.plugin... ]
Steven Hawkins updated TEIID-3315:
----------------------------------
Component/s: Query Engine
> problem with function TRIM
> --------------------------
>
> Key: TEIID-3315
> URL: https://issues.jboss.org/browse/TEIID-3315
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 8.7
> Reporter: Bram Gadeyne
> Assignee: Steven Hawkins
> Labels: stringfunction
>
> I have a database that contains some columns with multiple values separated with comma . So I'm trying to use a combination of case, substring and trim to split these values into multiple colums.
> The following statement part does not work:
> case when pos2 = 0 then trim(substring(Description, pos1+1))
> end as bed
> TEIID31100 Parsing error: Encountered "+1)[*])[*] end as" at line 3, column 68.
> If I add ' ' FROM to the trim statement it does work and returns a correct result.
> working statement:
> case when pos2 = 0 then trim(' ' FROM substring(Description, pos1+1))
> end as bed
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
10 years, 1 month
[JBoss JIRA] (TEIID-3315) problem with function TRIM
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-3315?page=com.atlassian.jira.plugin... ]
Steven Hawkins updated TEIID-3315:
----------------------------------
Affects Version/s: 8.7
(was: 8.9.1)
> problem with function TRIM
> --------------------------
>
> Key: TEIID-3315
> URL: https://issues.jboss.org/browse/TEIID-3315
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 8.7
> Reporter: Bram Gadeyne
> Assignee: Steven Hawkins
> Labels: stringfunction
>
> I have a database that contains some columns with multiple values separated with comma . So I'm trying to use a combination of case, substring and trim to split these values into multiple colums.
> The following statement part does not work:
> case when pos2 = 0 then trim(substring(Description, pos1+1))
> end as bed
> TEIID31100 Parsing error: Encountered "+1)[*])[*] end as" at line 3, column 68.
> If I add ' ' FROM to the trim statement it does work and returns a correct result.
> working statement:
> case when pos2 = 0 then trim(' ' FROM substring(Description, pos1+1))
> end as bed
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
10 years, 1 month
[JBoss JIRA] (TEIID-3317) MongoDB: group by doesn't work with MongoDB 2.6.3
by Ramesh Reddy (JIRA)
[ https://issues.jboss.org/browse/TEIID-3317?page=com.atlassian.jira.plugin... ]
Ramesh Reddy reassigned TEIID-3317:
-----------------------------------
Assignee: Ramesh Reddy (was: Steven Hawkins)
> MongoDB: group by doesn't work with MongoDB 2.6.3
> --------------------------------------------------
>
> Key: TEIID-3317
> URL: https://issues.jboss.org/browse/TEIID-3317
> Project: Teiid
> Issue Type: Bug
> Components: Misc. Connectors
> Affects Versions: 8.9.1
> Environment: Teiid 8.9.1 with MongoDB version: 2.6.3 using MongoDB Driver mongo-java-driver-2.12.3.jar
> Reporter: Ivan Chan
> Assignee: Ramesh Reddy
> Labels: Teiid
>
> Running group by sql through exception:
> select "FirstName"
> from "MongoDB_Array_263"."TeiidArray"
> group by "FirstName"
> order by "FirstName"
> limit 1000
> Exception:
> Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.rangeCheck(ArrayList.java:604)
> at java.util.ArrayList.get(ArrayList.java:382)
> at org.teiid.translator.mongodb.MongoDBQueryExecution.next(MongoDBQueryExecution.java:132)
> at org.teiid.dqp.internal.datamgr.ConnectorWorkItem.handleBatch(ConnectorWorkItem.java:386)
> at org.teiid.dqp.internal.datamgr.ConnectorWorkItem.more(ConnectorWorkItem.java:204)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.teiid.dqp.internal.datamgr.ConnectorManager$1.invoke(ConnectorManager.java:209)
> at $Proxy182.more(Unknown Source)
> at org.teiid.dqp.internal.process.DataTierTupleSource.getResults(DataTierTupleSource.java:301)
> at org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:110)
> at org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:107)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at org.teiid.dqp.internal.process.FutureWork.run(FutureWork.java:58)
> at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:274)
> at org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:119)
> at org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:210)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
10 years, 1 month
[JBoss JIRA] (TEIID-3316) MongoDB: Getting "unrecognized field \"cursor" when connecting to MongoDB using Teiid 8.9.1
by Ramesh Reddy (JIRA)
[ https://issues.jboss.org/browse/TEIID-3316?page=com.atlassian.jira.plugin... ]
Ramesh Reddy reassigned TEIID-3316:
-----------------------------------
Assignee: Ramesh Reddy (was: Steven Hawkins)
> MongoDB: Getting "unrecognized field \"cursor" when connecting to MongoDB using Teiid 8.9.1
> --------------------------------------------------------------------------------------------
>
> Key: TEIID-3316
> URL: https://issues.jboss.org/browse/TEIID-3316
> Project: Teiid
> Issue Type: Bug
> Components: Misc. Connectors
> Affects Versions: 8.9.1
> Environment: Teiid 8.9.1 with MongoDB shell version: 2.4.8 using MongoDB Driver mongo-java-driver-2.12.3.jar
> Reporter: Ivan Chan
> Assignee: Ramesh Reddy
>
> I am getting the following erroe when connecting to MongoDB using Teiid 8.9.1:
> Caused by: com.mongodb.CommandFailureException: { "serverUsed" : "donetsk:27017" , "ok" : 0.0 , "errmsg" : "unrecognized field \"cursor"}
> at com.mongodb.CommandResult.getException(CommandResult.java:76)
> at com.mongodb.CommandResult.throwOnError(CommandResult.java:131)
> at com.mongodb.DBCollectionImpl.aggregate(DBCollectionImpl.java:100)
> at com.mongodb.DBCollection.aggregate(DBCollection.java:1571)
> at org.teiid.translator.mongodb.MongoDBQueryExecution.execute(MongoDBQueryExecution.java:111)
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
10 years, 1 month
[JBoss JIRA] (TEIID-3317) MongoDB: group by doesn't work with MongoDB 2.6.3
by Ivan Chan (JIRA)
Ivan Chan created TEIID-3317:
--------------------------------
Summary: MongoDB: group by doesn't work with MongoDB 2.6.3
Key: TEIID-3317
URL: https://issues.jboss.org/browse/TEIID-3317
Project: Teiid
Issue Type: Bug
Components: Misc. Connectors
Affects Versions: 8.9.1
Environment: Teiid 8.9.1 with MongoDB version: 2.6.3 using MongoDB Driver mongo-java-driver-2.12.3.jar
Reporter: Ivan Chan
Assignee: Steven Hawkins
Running group by sql through exception:
select "FirstName"
from "MongoDB_Array_263"."TeiidArray"
group by "FirstName"
order by "FirstName"
limit 1000
Exception:
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:604)
at java.util.ArrayList.get(ArrayList.java:382)
at org.teiid.translator.mongodb.MongoDBQueryExecution.next(MongoDBQueryExecution.java:132)
at org.teiid.dqp.internal.datamgr.ConnectorWorkItem.handleBatch(ConnectorWorkItem.java:386)
at org.teiid.dqp.internal.datamgr.ConnectorWorkItem.more(ConnectorWorkItem.java:204)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.teiid.dqp.internal.datamgr.ConnectorManager$1.invoke(ConnectorManager.java:209)
at $Proxy182.more(Unknown Source)
at org.teiid.dqp.internal.process.DataTierTupleSource.getResults(DataTierTupleSource.java:301)
at org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:110)
at org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:107)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at org.teiid.dqp.internal.process.FutureWork.run(FutureWork.java:58)
at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:274)
at org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:119)
at org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:210)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
10 years, 1 month
[JBoss JIRA] (TEIID-3316) MongoDB: Getting "unrecognized field \"cursor" when connecting to MongoDB using Teiid 8.9.1
by Ivan Chan (JIRA)
Ivan Chan created TEIID-3316:
--------------------------------
Summary: MongoDB: Getting "unrecognized field \"cursor" when connecting to MongoDB using Teiid 8.9.1
Key: TEIID-3316
URL: https://issues.jboss.org/browse/TEIID-3316
Project: Teiid
Issue Type: Bug
Components: Misc. Connectors
Affects Versions: 8.9.1
Environment: Teiid 8.9.1 with MongoDB shell version: 2.4.8 using MongoDB Driver mongo-java-driver-2.12.3.jar
Reporter: Ivan Chan
Assignee: Steven Hawkins
I am getting the following erroe when connecting to MongoDB using Teiid 8.9.1:
Caused by: com.mongodb.CommandFailureException: { "serverUsed" : "donetsk:27017" , "ok" : 0.0 , "errmsg" : "unrecognized field \"cursor"}
at com.mongodb.CommandResult.getException(CommandResult.java:76)
at com.mongodb.CommandResult.throwOnError(CommandResult.java:131)
at com.mongodb.DBCollectionImpl.aggregate(DBCollectionImpl.java:100)
at com.mongodb.DBCollection.aggregate(DBCollection.java:1571)
at org.teiid.translator.mongodb.MongoDBQueryExecution.execute(MongoDBQueryExecution.java:111)
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
10 years, 1 month
[JBoss JIRA] (TEIID-3315) problem with function TRIM
by Bram Gadeyne (JIRA)
Bram Gadeyne created TEIID-3315:
-----------------------------------
Summary: problem with function TRIM
Key: TEIID-3315
URL: https://issues.jboss.org/browse/TEIID-3315
Project: Teiid
Issue Type: Bug
Affects Versions: 8.9.1
Reporter: Bram Gadeyne
Assignee: Steven Hawkins
I have a database that contains some columns with multiple values separated with comma . So I'm trying to use a combination of case, substring and trim to split these values into multiple colums.
The following statement part does not work:
case when pos2 = 0 then trim(substring(Description, pos1+1))
end as bed
TEIID31100 Parsing error: Encountered "+1)[*])[*] end as" at line 3, column 68.
If I add ' ' FROM to the trim statement it does work and returns a correct result.
working statement:
case when pos2 = 0 then trim(' ' FROM substring(Description, pos1+1))
end as bed
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
10 years, 1 month