You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/userguide/advanced_data_comparison.md
+51-2Lines changed: 51 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,8 +143,6 @@ You can now join two cursors by defining a primary key or composite key that wil
143
143
144
144
Join by option can be used in conjunction with include or exclude options. However if any of the join keys is part of exclude set, comparison will fail and report to user that sets could not be joined on specific key (excluded).
145
145
146
-
Join by options currently doesn't support nested table inside cursor.
147
-
148
146
```sql
149
147
procedure join_by_username is
150
148
l_actual sys_refcursor;
@@ -171,6 +169,57 @@ This will show you difference in row 'TEST' regardless of order.
171
169
172
170
Assumption is that join by is made by column name so that what will be displayed as part of results.
173
171
172
+
Join by options currently doesn't support nested table inside cursor comparison, however is still possible to compare a collection as a whole.
In case when a there is detected collection inside cursor and we cannot join key. Comparison will present a failed joins and also a message about collection being detected.
211
+
212
+
```sql
213
+
Actual: refcursor [ count =1 ] was expected to equal: refcursor [ count =1 ]
214
+
Diff:
215
+
Unable to join sets:
216
+
Join key NESTED_TABLE/ANNOTATIONS/TEXT does not exists in expected
217
+
Join key NESTED_TABLE/ANNOTATIONS/TEXT does not exists in actual
218
+
Please make sure that your join clause is not refferring to collection element
219
+
```
220
+
221
+
222
+
174
223
175
224
176
225
**Please note that .join_by option will take longer to process due to need of parsing via primary keys.**
0 commit comments