Documente Academic
Documente Profesional
Documente Cultură
1
Homogeneous Joins
Joins that can be performed with a SQL SELECT statement:
Source Qualifier contains a SQL join
Tables on same database server (or are synonyms)
Database server does the join “work”
Multiple homogenous tables can be joined
2
Heterogeneous Joins
Joins that cannot be done with a SQL statement:
An Oracle table and a Sybase table
Two Informix tables on different database servers
Two flat files
A flat file and a database table
3
Joiner Transformation
Performs heterogeneous joins on records from two tables
on same or different databases or flat file sources
Active Transformation
Connected
Ports
• All input or input / output
• “M” denotes port comes
from master source
Specify the Join condition
Usage
• Join two flat files
• Join two tables from
different databases
• Join a flat file with a
relational table
4
Joiner Conditions
Multiple
join
conditions
are supported
5
Joiner Properties
Join types:
“Normal” (inner)
Master outer
Detail outer
Full outer
6
Sorted Input for Joiner
Using sorted input improves session performance minimizing the disk
input and output
The pre-requisites for using the sorted input are
• Database sort order must be same as the session sort order
• Sort order must be configured by the use of sorted sources (flat
files/relational tables) or sorter transformation
• The flow of sorted data must me maintained by avoiding the use of
transformations like Rank, Custom, Normalizer etc. which alter the sort
order
• Enable the sorted input option is properties tab
• The order of the ports used in joining condition must match the order of
the ports at the sort origin
• When joining the Joiner output with another pipeline make sure that the
data from the first joiner is sorted
7
Mid-Mapping Join - Tips
The Joiner does not accept input in the following situations:
Both input pipelines begin with the same Source Qualifier
Both input pipelines begin with the same Normalizer
Both input pipelines begin with the same Joiner
Either input pipeline contains an Update Strategy