Skip to content

Commit

Permalink
Merge pull request #15703 from cdapio/CDAP-21059-error-management-and…
Browse files Browse the repository at this point in the history
…-classification

[CDAP-21059] Add support to return stageName in stageConfigurer
  • Loading branch information
itsankit-google authored Sep 16, 2024
2 parents 0600222 + 0b97ce6 commit 7292c8c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ public interface StageConfigurer {
@Nullable
Schema getInputSchema();

/**
* Returns the name of the stage.
*
* @return the name of the stage
*/
String getStageName();

/**
* set the output schema for this stage, or null if its unknown
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ public void setErrorSchema(@Nullable Schema errorSchema) {
errorSchemaSet = true;
}

@Override
public String getStageName() {
return stageName;
}

@Override
public FailureCollector getFailureCollector() {
if (collector == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ public void setErrorSchema(@Nullable Schema errorSchema) {
// no-op
}

@Override
public String getStageName() {
return null;
}

public FailureCollector getFailureCollector() {
return collector;
}
Expand Down

0 comments on commit 7292c8c

Please sign in to comment.