Fast Path Local Nested Join | Join Planning/Optimization | Teradata Vantage - Fast Path Local Nested Join - Analytics Database - Teradata Vantage

SQL Request and Transaction Processing

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-10-04
dita:mapPath
zfm1628111633230.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
evd1472255317510
lifecycle
latest
Product Category
Teradata Vantageā„¢

Fast Path Local Nested Join Process

The process applied by the fast path nested join algorithm is provided in the following table. This process is similar to the fast path merge join except that the right table is a NUSI subtable instead of a base table.

This logic returns multiple join rows because there can be multiple rowIDs from the right NUSI subtable for each pair of left and right table rows.

  1. Read a row from the left base table and record its hash value.
  2. Read the next row from the right NUSI subtable that has a row hash >= to that of the left base table row.
    • If the row hash values are equal, then join the two rows.
    • If the row hash values are not equal, then use the larger row hash value to read the row from the right NUSI subtable.

The following SELECT request is an example of a query processed using a simple fast path local nested join:

SELECT *
FROM table_1, table_2
WHERE table_1.x_1 = 10
AND   table_1.y_1 = table_2.NUSI;