Informatica Lookup Transformation组件的Connect 与Unconnected类型用法及区别:下面是通一个Lookup在不同Mapping中的使用:
1. Connect lookup: 可以返回多个输出port的字段值,需要用连接线将输入、输出port连接到其他组件。
2. Unconnected lookup 只能返回一个port的字段值,无需连接线连接到其他组件,只需直接在Expression表达式中像调用函数函数那样调用它即可获得返回值。
Connected and Unconnected Lookups
You can configure a connected Lookup transformation or an unconnected Lookup transformation. A connected Lookup transformation is a transformation that has input and output ports that you connect to other transformations in a mapping. An unconnected Lookup transformation appears in the mapping, but is not connected to other transformations.
An unconnected Lookup transformation receives input from the result of a :LKP expression in a transformation such as an Expression transformation or Aggregator transformation. The :LKP expression passes parameters to the Lookup transformation and receives a result back from the lookup. The :LKP expression can pass lookup results to another expression in the transformation to filter results.
The following table lists the differences between connected and unconnected lookups:
Connected Lookup |
Unconnected Lookup |
---|---|
Receives input values directly from the pipeline. |
Receives input values from the result of a :LKP expression in another transformation. |
Use a dynamic or static cache. |
Use a static cache. |
Cache includes the lookup source columns in the lookup condition and the lookup source columns that are output ports. |
Cache includes all lookup and output ports in the lookup condition and the lookup/return port. |
Returns multiple columns from the same row or insert into the dynamic lookup cache. |
Returns one column from each row to a return port. |
If there is no match for the lookup condition, the Integration Service returns the default value for all output ports. If you configure dynamic caching, the Integration Service inserts rows into the cache or leaves it unchanged. |
If there is no match for the lookup condition, the Integration Service returns NULL. |
If there is a match for the lookup condition, the Integration Service returns the result of the lookup condition for all lookup/output ports. If you configure dynamic caching, the Integration Service either updates the row the in the cache or leaves the row unchanged. |
If a match occurs for the lookup condition, the Integration Service returns the result of the lookup condition to the return port. |
Passes multiple output values to another transformation. Link lookup/output ports to another transformation. |
Returns one output value to another transformation. The Lookup transformation return port passes the value to the port that contains the :LKP expression in the other transformation. |
Supports user-defined default values. |
Does not support user-defined default values. |