Under these conditions, how does data flow to the outputs?

You have a tMap component configured with a single input row1 and three outputs: CA, NY, Rejects.

The input row1 consists of two columns.

Name and State, containing the following data:

All outputs map only the Name column from row1, but CA employs a filter expression, CA.equals(row1.state), while Ny employs a filter expression, NY. Equals (row1, State). All Rejects have no such configuration.

Under these conditions, how does data flow to the outputs?

A. CA:Thomas Coolidge Andrew TyalorlNY;Calvin Adams;rejects;none

B. CA:Thomas Coodge;Calvin Adams; rejects:Andrew Taylor

C. CA:Thomas Coolidge;Ny:Calvin Adams;rejects:Thomas Coolidge, adrew taylor, Calvin Adame

D. CA:Thomas Coolidge, Andrew Taylor;Ny:Calvin Adams; rejects:Thomas Coolidge, Andrew Taylor,Calvin Adams

Answer: D

Explanation:

With a tMap component configured with a single input row1 and three outputs: CA, NY, Rejects, the input row1 consists of two columns: Name and State, and the outputs are configured with filter expressions for CA and NY, while Rejects has no such configuration. Based on the provided data:

Thomas Coolidge, CA: Since the state is "CA", it will flow to the CA output.

Andrew Taylor, Ca: Assuming case insensitivity, since the state is "Ca", it will also flow to the CA output.

Calvin Adams, NY: Since the state is "NY", it will flow to the NY output.

Since there are no rows that fail to meet either the CA or NY filter conditions, no rows will flow to the Rejects output.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments