Hi,
Is it necessary to put a sort stage before join stage,
If i am not wrong Join stage does sorting as well.
please correct me if i am wrong
thanks,
SORT STAGE BEFORE JOIN STAGE
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 137
- Joined: Sun Jan 07, 2007 11:17 pm
- Location: VISAKHAPATNAM
SORT STAGE BEFORE JOIN STAGE
Shivaranjani
-
- Participant
- Posts: 137
- Joined: Sun Jan 07, 2007 11:17 pm
- Location: VISAKHAPATNAM
But it gives a warning of
STG_JOIN_6: When checking operator: User inserted sort "STG_SORT_5" does not fulfill the sort requirements of the downstream operator "APT_JoinSubOperator in STG_JOIN_6"
STG_JOIN_6: When checking operator: User inserted sort "STG_SORT_5" does not fulfill the sort requirements of the downstream operator "APT_JoinSubOperator in STG_JOIN_6"
Maveric wrote:It is better to use external Sort stage to sort both the left and right link data. It improves the performance especially if the data volume is high. The sorting performance is not good in Join stage.
Shivaranjani
-
- Participant
- Posts: 137
- Joined: Sun Jan 07, 2007 11:17 pm
- Location: VISAKHAPATNAM
The keys are same but not working its giving the same warning..
Whats "APT_DISABLE_SORT environment variable" how can i use this..
Whats "APT_DISABLE_SORT environment variable" how can i use this..
Maveric wrote:The sort and join keys should be the same and in the same order. If it still gives the warning, then try with APT_DISABLE_SORT environment variable. This might remove the warning. Might. Try it and let us know.
Shivaranjani
The input needs to be hash-partitioned and sorted for Join . Same partition can be maintained after doing the same.
Alternatively "Auto" partition does the same.
APT_NO_SORT_INSERTION : DataStage automatically inserts sort components based on this , can be included in Job to prevent automatic sort insertions.
Alternatively "Auto" partition does the same.
APT_NO_SORT_INSERTION : DataStage automatically inserts sort components based on this , can be included in Job to prevent automatic sort insertions.