Skip to content

Commit

Permalink
Merge branch 'master' into stacktrace-in-looker-log
Browse files Browse the repository at this point in the history
  • Loading branch information
sid-acryl authored Jul 31, 2024
2 parents 0f07220 + 27e1130 commit 38515f1
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import javax.annotation.Nullable;
import lombok.extern.slf4j.Slf4j;


@Slf4j
public class InputFieldsMapper {

Expand Down Expand Up @@ -40,9 +39,14 @@ public com.linkedin.datahub.graphql.generated.InputFields apply(
if (field.hasSchemaFieldUrn()) {
fieldResult.setSchemaFieldUrn(field.getSchemaFieldUrn().toString());
try {
parentUrn = Urn.createFromString(field.getSchemaFieldUrn().getEntityKey().get(0));
parentUrn =
Urn.createFromString(field.getSchemaFieldUrn().getEntityKey().get(0));
} catch (URISyntaxException e) {
log.error("Field urn resolution: failed to extract parentUrn successfully from {}. Falling back to {}", field.getSchemaFieldUrn(), entityUrn, e);
log.error(
"Field urn resolution: failed to extract parentUrn successfully from {}. Falling back to {}",
field.getSchemaFieldUrn(),
entityUrn,
e);
}
}
if (field.hasSchemaField()) {
Expand Down

0 comments on commit 38515f1

Please sign in to comment.