[JBoss JIRA] (TEIID-4867) Loosen up OData4 URL validation or parsing
by Ramesh Reddy (JIRA)
[ https://issues.jboss.org/browse/TEIID-4867?page=com.atlassian.jira.plugin... ]
Ramesh Reddy commented on TEIID-4867:
-------------------------------------
[~dsteigne] and [~jolee] upgrade the Olingo library version to "4.2.0-teiid-8" for the fix for JDV 6.3
> Loosen up OData4 URL validation or parsing
> ------------------------------------------
>
> Key: TEIID-4867
> URL: https://issues.jboss.org/browse/TEIID-4867
> Project: Teiid
> Issue Type: Bug
> Components: OData
> Affects Versions: 8.12.8.6_3
> Environment: JDV 6.3.2
> Windows 7
> Reporter: Steve Tran
> Assignee: Steven Hawkins
>
> I'm accessing my JDV table via OData4 through Salesforce's UI builder. The salesforce engine itself is creating the OData calls, and whenever a $filter is needed with multiple columns, it looks like salesforce pads the column name with a space in front and behind. That'll make the URL look like ...$filter={color:red}%20{color}ColumnA{color:red}%20{color}eq%20123%20and{color:red}%20{color}ColumnB{color:red}%20{color}eq...
> The first space right after the $filter= throws off the JDV engine as it thinks it's a malformed URL - which I guess it is. The thing is when I tested it via the OData2 interface, it accepted it just fine. I'm not sure if the OData4 specifications explicitly state in terms of the URL, so it could be anybody's bug. Perhaps we could make JDV a little more forgiving and trim the spaces after un-URL-encoding the URI.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 8 months
[JBoss JIRA] (TEIID-4858) hive translator is extremely slow
by Michael Echevarria (JIRA)
[ https://issues.jboss.org/browse/TEIID-4858?page=com.atlassian.jira.plugin... ]
Michael Echevarria commented on TEIID-4858:
-------------------------------------------
For reference the number of records this was tested against was 12435
> hive translator is extremely slow
> ---------------------------------
>
> Key: TEIID-4858
> URL: https://issues.jboss.org/browse/TEIID-4858
> Project: Teiid
> Issue Type: Bug
> Components: JDBC Connector
> Affects Versions: 8.12.9.6_3
> Environment: Tested against JDV 6.3.4 and the Cloudera quickstart 5.8 VM with the Cloudera sample data loaded into hive
> Reporter: Michael Echevarria
> Assignee: Steven Hawkins
> Attachments: fast.log, override1.png, override2.png, slow.log
>
>
> When querying a table through the hive translator the results take close to 30 seconds to return.
> When querying a table through jdbc default results take under 1 second to return.
> Both use the same underlying jboss server datasource.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 8 months
[JBoss JIRA] (TEIID-4869) Fix endpoint url for the "odata4service-as-a-datasource" in the embedded quickstart
by Kylin Soong (JIRA)
[ https://issues.jboss.org/browse/TEIID-4869?page=com.atlassian.jira.plugin... ]
Kylin Soong resolved TEIID-4869.
--------------------------------
Resolution: Done
> Fix endpoint url for the "odata4service-as-a-datasource" in the embedded quickstart
> ------------------------------------------------------------------------------------
>
> Key: TEIID-4869
> URL: https://issues.jboss.org/browse/TEIID-4869
> Project: Teiid
> Issue Type: Bug
> Components: Quick Starts
> Affects Versions: 9.2
> Environment: Additional info.
> - JBDS 9.1
> - translator-odata4-9.2.0.Alpha1.jar
> Reporter: Anu Saji
> Assignee: Kylin Soong
> Priority: Minor
> Fix For: 9.3
>
>
> The example quickstart using Odata4 Service from emedded example =>
> https://github.com/teiid/teiid-embedded-examples/tree/master/odata4servic...
> throws NPE [1]
> It currently uses the endpoint url that is using version =>
> <edmx:Edmx Version="1.0">
> when the required is
> <edmx:Edmx Version="4.0">
> src code
> ~~~
> ...
> managedconnectionFactory.setEndPoint("http://services.odata.org/Northwind/Northwind.svc");
> ...
> ~~~
> [1]
> ~~~
> NFO: TEIID40118 VDB NorthwindVDB.1 added to the repository
> Exception in thread "main" java.lang.NullPointerException
> at org.teiid.translator.odata4.ODataMetadataProcessor.getMetadata(ODataMetadataProcessor.java:118)
> at org.teiid.translator.odata4.ODataMetadataProcessor.process(ODataMetadataProcessor.java:102)
> at org.teiid.translator.odata4.ODataExecutionFactory.getMetadata(ODataExecutionFactory.java:112)
> at org.teiid.translator.odata4.ODataExecutionFactory.getMetadata(ODataExecutionFactory.java:58)
> at org.teiid.query.metadata.NativeMetadataRepository.getMetadata(NativeMetadataRepository.java:96)
> at org.teiid.query.metadata.NativeMetadataRepository.loadMetadata(NativeMetadataRepository.java:62)
> at org.teiid.query.metadata.ChainingMetadataRepository.loadMetadata(ChainingMetadataRepository.java:55)
> at org.teiid.runtime.EmbeddedServer.loadMetadata(EmbeddedServer.java:811)
> at org.teiid.runtime.AbstractVDBDeployer.loadMetadata(AbstractVDBDeployer.java:210)
> at org.teiid.runtime.EmbeddedServer.deployVDB(EmbeddedServer.java:761)
> at org.teiid.runtime.EmbeddedServer.deployVDB(EmbeddedServer.java:702)
> at org.teiid.example.TeiidEmbeddedOData4ServiceDataSource.main(TeiidEmbeddedOData4ServiceDataSource.java:50)
> ~~~
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 8 months
[JBoss JIRA] (TEIID-4869) Fix endpoint url for the "odata4service-as-a-datasource" in the embedded quickstart
by Kylin Soong (JIRA)
[ https://issues.jboss.org/browse/TEIID-4869?page=com.atlassian.jira.plugin... ]
Kylin Soong commented on TEIID-4869:
------------------------------------
[~asaji], PR 49(https://github.com/teiid/teiid-embedded-examples/pull/49) fixed the defects, refer to the latest code run your scenario.
> Fix endpoint url for the "odata4service-as-a-datasource" in the embedded quickstart
> ------------------------------------------------------------------------------------
>
> Key: TEIID-4869
> URL: https://issues.jboss.org/browse/TEIID-4869
> Project: Teiid
> Issue Type: Bug
> Components: Quick Starts
> Affects Versions: 9.2
> Environment: Additional info.
> - JBDS 9.1
> - translator-odata4-9.2.0.Alpha1.jar
> Reporter: Anu Saji
> Assignee: Kylin Soong
> Priority: Minor
> Fix For: 9.3
>
>
> The example quickstart using Odata4 Service from emedded example =>
> https://github.com/teiid/teiid-embedded-examples/tree/master/odata4servic...
> throws NPE [1]
> It currently uses the endpoint url that is using version =>
> <edmx:Edmx Version="1.0">
> when the required is
> <edmx:Edmx Version="4.0">
> src code
> ~~~
> ...
> managedconnectionFactory.setEndPoint("http://services.odata.org/Northwind/Northwind.svc");
> ...
> ~~~
> [1]
> ~~~
> NFO: TEIID40118 VDB NorthwindVDB.1 added to the repository
> Exception in thread "main" java.lang.NullPointerException
> at org.teiid.translator.odata4.ODataMetadataProcessor.getMetadata(ODataMetadataProcessor.java:118)
> at org.teiid.translator.odata4.ODataMetadataProcessor.process(ODataMetadataProcessor.java:102)
> at org.teiid.translator.odata4.ODataExecutionFactory.getMetadata(ODataExecutionFactory.java:112)
> at org.teiid.translator.odata4.ODataExecutionFactory.getMetadata(ODataExecutionFactory.java:58)
> at org.teiid.query.metadata.NativeMetadataRepository.getMetadata(NativeMetadataRepository.java:96)
> at org.teiid.query.metadata.NativeMetadataRepository.loadMetadata(NativeMetadataRepository.java:62)
> at org.teiid.query.metadata.ChainingMetadataRepository.loadMetadata(ChainingMetadataRepository.java:55)
> at org.teiid.runtime.EmbeddedServer.loadMetadata(EmbeddedServer.java:811)
> at org.teiid.runtime.AbstractVDBDeployer.loadMetadata(AbstractVDBDeployer.java:210)
> at org.teiid.runtime.EmbeddedServer.deployVDB(EmbeddedServer.java:761)
> at org.teiid.runtime.EmbeddedServer.deployVDB(EmbeddedServer.java:702)
> at org.teiid.example.TeiidEmbeddedOData4ServiceDataSource.main(TeiidEmbeddedOData4ServiceDataSource.java:50)
> ~~~
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 8 months
[JBoss JIRA] (TEIID-4869) Fix endpoint url for the "odata4service-as-a-datasource" in the embedded quickstart
by Anu Saji (JIRA)
[ https://issues.jboss.org/browse/TEIID-4869?page=com.atlassian.jira.plugin... ]
Anu Saji commented on TEIID-4869:
---------------------------------
To access "AddressInfo" from below site ,that which is a "complex type" , what should be the syntax like
http://services.odata.org/TripPinRESTierService/(S(aayfdtyw1m3sewhrmqiklc...
This below SELECT statement works
SELECT FirstName , LastName , Emails FROM tripin.People where UserName='scottketchum'",true)
but fails with different options/combination of AddressInfo , Location , City, Address
Kindly advise
> Fix endpoint url for the "odata4service-as-a-datasource" in the embedded quickstart
> ------------------------------------------------------------------------------------
>
> Key: TEIID-4869
> URL: https://issues.jboss.org/browse/TEIID-4869
> Project: Teiid
> Issue Type: Bug
> Components: Quick Starts
> Affects Versions: 9.2
> Environment: Additional info.
> - JBDS 9.1
> - translator-odata4-9.2.0.Alpha1.jar
> Reporter: Anu Saji
> Assignee: Kylin Soong
> Priority: Minor
> Fix For: 9.3
>
>
> The example quickstart using Odata4 Service from emedded example =>
> https://github.com/teiid/teiid-embedded-examples/tree/master/odata4servic...
> throws NPE [1]
> It currently uses the endpoint url that is using version =>
> <edmx:Edmx Version="1.0">
> when the required is
> <edmx:Edmx Version="4.0">
> src code
> ~~~
> ...
> managedconnectionFactory.setEndPoint("http://services.odata.org/Northwind/Northwind.svc");
> ...
> ~~~
> [1]
> ~~~
> NFO: TEIID40118 VDB NorthwindVDB.1 added to the repository
> Exception in thread "main" java.lang.NullPointerException
> at org.teiid.translator.odata4.ODataMetadataProcessor.getMetadata(ODataMetadataProcessor.java:118)
> at org.teiid.translator.odata4.ODataMetadataProcessor.process(ODataMetadataProcessor.java:102)
> at org.teiid.translator.odata4.ODataExecutionFactory.getMetadata(ODataExecutionFactory.java:112)
> at org.teiid.translator.odata4.ODataExecutionFactory.getMetadata(ODataExecutionFactory.java:58)
> at org.teiid.query.metadata.NativeMetadataRepository.getMetadata(NativeMetadataRepository.java:96)
> at org.teiid.query.metadata.NativeMetadataRepository.loadMetadata(NativeMetadataRepository.java:62)
> at org.teiid.query.metadata.ChainingMetadataRepository.loadMetadata(ChainingMetadataRepository.java:55)
> at org.teiid.runtime.EmbeddedServer.loadMetadata(EmbeddedServer.java:811)
> at org.teiid.runtime.AbstractVDBDeployer.loadMetadata(AbstractVDBDeployer.java:210)
> at org.teiid.runtime.EmbeddedServer.deployVDB(EmbeddedServer.java:761)
> at org.teiid.runtime.EmbeddedServer.deployVDB(EmbeddedServer.java:702)
> at org.teiid.example.TeiidEmbeddedOData4ServiceDataSource.main(TeiidEmbeddedOData4ServiceDataSource.java:50)
> ~~~
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 8 months