GP-2794: Refactor ThreadsProvider for new trace conventions

This commit is contained in:
Dan 2022-11-10 13:48:27 -05:00
parent c301dd2c89
commit 6c33d872fd
25 changed files with 1989 additions and 923 deletions

View file

@ -787,7 +787,12 @@ public interface TargetObjectSchema {
List<TargetObjectSchema> schemas = getSuccessorSchemas(path);
for (; path != null; path = PathUtils.parent(path)) {
TargetObjectSchema schema = schemas.get(path.size());
if (schema.getInterfaces().contains(type)) {
if (!schema.isCanonicalContainer()) {
continue;
}
TargetObjectSchema deSchema =
schema.getContext().getSchema(schema.getDefaultElementSchema());
if (deSchema.getInterfaces().contains(type)) {
return path;
}
List<String> inAgg = Private.searchForSuitableContainerInAggregate(schema, type);