Usage of enforcedMatches in Find Incremental Matches

0

There is a field with the key: enforcedMatches in FindIncrementalMatches function of AWS Glue 2.0

It is mentioned in AWS Docs | FindIncrementalMatches.apply but there is no implementation example for this. It expects a data frame but how does it effect the output?

Expectation

I passed the existing source of data hoping that it will re-use the match_id from the previous result and enforce the matches but that did not work. The prior thread is: AWS Question on FindincrementalMatches

Question

What is the purpose and usage of enforcedMatches in FindIncrementalMatches?

1개 답변
0
수락된 답변

Hello Fahad,

The enforcedMatches parameter in FindIncrementalMatches.apply function is taking a DynamicFrame as an input which is being used to override the matches if a user is providing any other labels. The DynamicFrame should be a labelled DynamicFrame which supports AWS Glue i.e. the header should include LABEL, LABELING_SET_ID. This parameter is just an override if a user is to provide a source other than the labels. So, unless there is an external label set to enforce here, you don’t need do change anything. Default value is null; it as can be left as null or omitted. If you are using the ML transform generated labels, the parameter can be ignored.

The option “Force output to match labels” in the ML Transform should be set to true when using the enforcedMatches parameter. This ensures that the ML Transform forces the output to match the labels provided by the user.

AWS
지원 엔지니어
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠