Hello HENK,
My dataset "Participants" comes from several spreadsheets of Excel units, and my dataset "Customers" comes from my organization's Customer data warehouse (I am author user only).
I wanted a new set of data, the result of this Join, containing the already consolidated data, because I don't need to go down to the client.id level, just the companies, branches and totals.
About webex, you can check release with IT department.
------------------------------
Gustavo Andrade
------------------------------
Original Message:
Sent: Tue June 06, 2023 04:05 PM
From: HENK CAZEMIER
Subject: Join with many records e return exception
Hi Gustavo,
I wouldn't try to copy those literals into the expression.
I'm assuming from the above that both tables are in NZ ? Or do you have one local and one in NZ ?
I created the example based on 2 Cognos stored datasets.
If you create a Data Module that references both tables.
And use this Data Module to create a report and add a filter to that report along the lines of client.id not in ( participants.id ) then it will get all pushed to the database. In this case if one is a Cognos dataset and the other a NZ table, then Cognos will do this operation locally. Most of the time will likely be consumed in moving the 5,000,000 rows (hopefully narrow) to Cognos.
If you'd like we can do a webex and walk through it.
------------------------------
Kind regards,
Henk Cazemier
Original Message:
Sent: Tue June 06, 2023 02:49 PM
From: Gustavo Andrade
Subject: Join with many records e return exception
In my scenario here is
CLIENT.ID not in ( PARTICIPANTS.ID )
Dataset A - Participants (40.000 rows)
Dataset B - Clients (5.000.000 rows)
When pasting the IDs in () and trying to process, the error occurs:
XQE-DAT-0001 Erro do adaptador da origem de dados: org.netezza.error.NzSQLException: ERROR: pg_atoi: error reading "22954902000108": Numerical result out of range
RSV-SRV-0042
------------------------------
Gustavo Andrade
Original Message:
Sent: Tue June 06, 2023 12:37 PM
From: HENK CAZEMIER
Subject: Join with many records e return exception
Hi Gustavo,
Is the performance acceptable when you add a filter like:
DS_B.col_x not in ( DS_A.col_y )
When I execute this with DS_B having 43,000 rows and DS_A having 43,000 rows in Reporting, projecting sum(DS_B.qty) it took 1.7 seconds, including the planning of the query. I was using a Thinkpad P52 with both datasets on local ssd.
What is the number that you end up with?
------------------------------
Kind regards,
Henk Cazemier
Original Message:
Sent: Mon June 05, 2023 04:23 PM
From: Gustavo Andrade
Subject: Join with many records e return exception
Hello everyone, how are you?
I need to do a join between two datasets, A and B, and I would like the most performative way for this case.
- Dataset A - Participants (40.000 rows)
- Dataset B - Clients (5.000.000 rows)
Participants (ID - NAME)
789465 JONH
987465 MARIAN
147789 JESSYCA
Client (ID - NAME)
963258 JONH
987465 MARIAN
321456 ROSE
I need it to return all clients (dataset B), except participants (dataset A).
------------------------------
Gustavo Andrade
------------------------------