Denodo community Q&A RSS feed Latest Denodo community questions Want API as paginated 2020-10-01T07:20:21Z 2020-10-01T07:20:21Z Hello, Below is the Scenario, Please suggest I have extrenal API that gives me limit of 1000 records at a time. The data that I receive contains link for next page(a half link ex:) 1. Full link is like : https:/ name, address from example 2.Half link : the link I get with response row of next_page is sometihing like /sgvu/myapi/query/{a random token like text which change evry hour}?limit=1000&offset=1000 <-- This is prespecified, both values and changes with next page(offset only changes) Now (1.) gives me first thousand records and now I expect that using a interpolation variable with with (2.) I can achieve the token in it and then I can give it with a limit and offset. Note* I have tried tupple root, Pagination indices and other 3 Pagination options but I have failed to retirve data. My table contains more that 18k data, I just want to get all those data in one go and I am unable to do that -------------- What extras I have tried: Created one data source with main table (1) and one data source for table(2) now here I have an interpolation variable( ex say fetch) that can(fetch) can refer to next_page using a join with unified view of both datasources. and executed this query but still no better results just a looped result with error on 909 second 2020-10-01T07:20:21Z Properties of ODBC driver 2020-10-01T02:34:13Z 2020-10-01T02:34:13Z We are developing a project where we have to connect to our Denodo server from a Python script. We basically load the ODBC driver dynamically, connect to the server and then send the query. Very standard process. Here is the snippent of code where we do this: ``` import clr import System clr.AddReference("System.Data") from System.Data import DataSet from System.Data.Odbc import OdbcConnection, OdbcDataAdapter connectString = ( "DRIVER={DenodoODBC ANSI(x64)};" "SERVER=myserver;" "PORT=9996;" "DATABASE=mydatabase;" "Username=admin;" "Password=admin;" ) query = "SELECT * FROM myinterface" connection = OdbcConnection(connectString) adaptor = OdbcDataAdapter(query, connection) dataSet = DataSet() connection.Open() adaptor.Fill(dataSet) connection.Close() ``` That works just fine and gets the data. However, we need to change some properties of the ODBC connection we create on the fly. We think we can do that in the connection string; however, we do not have the correct syntax. We did the most intuitive thing which was to use the names we see in the ODBC driver. One of the parameters we need to change is the fetch size so we did: ``` connectString = ( "DRIVER={DenodoODBC ANSI(x64)};" "SERVER=myserver;" "PORT=9996;" "DATABASE=mydatabase;" "Username=admin;" "Password=admin;" "chunkSize=10000;" ) ``` That did not work. We also tried this: ``` connectString = ( "DRIVER={DenodoODBC ANSI(x64)};" "SERVER=myserver;" "PORT=9996;" "DATABASE=mydatabase;" "Username=admin;" "Password=admin;" "FETCH=10000;" ) ``` That did not work either. So, if someone knows the correct syntax for these properties, or any other way to change the propeties in the code, please let me know. Thanks! 2020-10-01T02:34:13Z Able to Connect to a SharePoint list but all Multi-select fields are missing 2020-10-01T00:41:20Z 2020-10-01T00:41:20Z I am able to connect with OAuth2 to our Sharepoint site and pull down various lists, without issues. However, I have noticed that any fields that are "multi-select" are missing from the schema. Is there a setting I need to change to get this to work? 2020-10-01T00:41:20Z Error while building the denodo image with the a dockerfile provided in the website 2020-09-30T12:50:02Z 2020-09-30T12:50:02Z I used the first Dockerfile provided at to build the image, but I am get the following error : Step 8/16 : RUN ./ install --autoinstaller install.xml ---> Running in 00d40c6e183d Installing Denodo Platform ... [ Starting automated installation ] java.lang.ArrayIndexOutOfBoundsException: 0 >= 0 java.lang.ArrayIndexOutOfBoundsException: 0 >= 0 at java.base/java.util.Vector.elementAt( at com.izforge.izpack.installer.AutomatedInstaller.updateInstanceCount(Unknown Source) at com.izforge.izpack.installer.AutomatedInstaller.doInstall(Unknown Source) at com.izforge.izpack.installer.Installer.main(Unknown Source) [ Automated installation FAILED! ] Removing intermediate container 00d40c6e183d ---> fecdf2d14c1e Step 9/16 : RUN sed -i "s/exit 0/wait/g" ${DENODO_HOME}/bin/ ---> Running in 30d3a0a5eb61 sed: can't read /opt/denodo/bin/ No such file or directory The command '/bin/sh -c sed -i "s/exit 0/wait/g" ${DENODO_HOME}/bin/' returned a non-zero code: 2 What does the error mean and how to solve it? Can anyone help? Thanks 2020-09-30T12:50:02Z Perform a join and only keep the first row when the join condition is met 2020-09-29T13:45:40Z 2020-09-29T13:45:40Z Thanks, for the fast response :) My original question: Perform a join and only keep the first row when the join condition is met Answer: I would add the clause LIMIT in the query which performs join to obtain only one row of the result set. For instance, If I have a join view called dv_join_view then I would execute the following query: Select * from dv_join_view LIMIT 1 I think I need to provide more details: I don't want only the first row of the table. I want the first row each instance the join condition is true. i.e. join contdition: *view1.partnumber = view2.partnumber* , join type left outter, and then when part1=part1, get one row and then when part2=part2, get one row Thanks, Josh 2020-09-29T13:45:40Z How to remove leading zero's in date time stamp - 08/03/2020 04:05:15 PM 2020-09-29T12:21:37Z 2020-09-29T12:21:37Z Hi Team\ I have format date 08/03/2020 04:05:15 PM want to remove the leading zero only on the date given above . How to do that.. Please help, its very urgent to implement on the job design. 08/03/2020 04:05:15 PM o/p 8/3/2020 04:05:15 PM 2020-09-29T12:21:37Z Flatten view 2020-09-29T10:17:30Z 2020-09-29T10:17:30Z Hi Team, I have created one view from Json data source.In this view there are multiple columns and 4-5 coloumns are itself a collection of array.And Inside these element array there are elements which are itself a collection of array. I want to flatten it.I right clicked on View ->New->Flatten.Then I clicked Flatten array on element which I need to create.Flatten view are getting created but along with rest of the coloumn which are array type. I want to create seperate view of each coloumns which are array type along with common coloumn which are not array type. Please help here. Thanks in Advance. Regards, Neetu 2020-09-29T10:17:30Z Iterate Api 2020-09-29T09:14:03Z 2020-09-29T09:14:03Z Hello, I have 12 number of pages with my API with limit of 1000 and offset of 1000. Now If I obtain a single page of data it consists of 1000 rows of data and I cannot increase the limit to even 2000 becuase of source that provides only 1k data at a time. Now How can I achieve all the data in one go using denodo how can I reitterate the data and get all the data Can I use interpolation variable. the table do have link for the next page and previous page. - changing limit doesnt matter, it 2020-09-29T09:14:03Z Perform a join and only keep the first row 2020-09-28T23:09:39Z 2020-09-28T23:09:39Z Perform a join and only keep the first row when the join condition it met 2020-09-28T23:09:39Z Denodo Scheduler: Is it possible to query the denodo scheduler and get a list of jobs, schedules, etc? 2020-09-28T22:20:06Z 2020-09-28T22:20:06Z Is it possible to query the denodo scheduler data? IE: Can we get a list of projects, jobs, and their triggers? 2020-09-28T22:20:06Z