diff --git a/legend-engine-core/legend-engine-core-base/legend-engine-core-language-pure/legend-engine-protocol-pure/src/main/java/org/finos/legend/engine/protocol/pure/v1/model/context/PackageableElementType.java b/legend-engine-core/legend-engine-core-base/legend-engine-core-language-pure/legend-engine-protocol-pure/src/main/java/org/finos/legend/engine/protocol/pure/v1/model/context/PackageableElementType.java
index bdf9a0ba4fe..3be6d626f0f 100644
--- a/legend-engine-core/legend-engine-core-base/legend-engine-core-language-pure/legend-engine-protocol-pure/src/main/java/org/finos/legend/engine/protocol/pure/v1/model/context/PackageableElementType.java
+++ b/legend-engine-core/legend-engine-core-base/legend-engine-core-language-pure/legend-engine-protocol-pure/src/main/java/org/finos/legend/engine/protocol/pure/v1/model/context/PackageableElementType.java
@@ -34,5 +34,6 @@ public enum PackageableElementType
DIAGRAM,
FILE_GENERATION,
DATA,
- QUERYPOSTPROCESSOR
+ QUERYPOSTPROCESSOR,
+ DATA_QUALITY_VALIDATION
}
diff --git a/legend-engine-xts-dataquality/legend-engine-xt-dataquality-compiler/pom.xml b/legend-engine-xts-dataquality/legend-engine-xt-dataquality-compiler/pom.xml
index bbde906f93b..e8fad88c3fc 100644
--- a/legend-engine-xts-dataquality/legend-engine-xt-dataquality-compiler/pom.xml
+++ b/legend-engine-xts-dataquality/legend-engine-xt-dataquality-compiler/pom.xml
@@ -66,6 +66,10 @@
runtime
+
+ org.finos.legend.engine
+ legend-engine-protocol
+
org.finos.legend.engine
legend-engine-protocol-pure
diff --git a/legend-engine-xts-dataquality/legend-engine-xt-dataquality-compiler/src/main/java/org/finos/legend/engine/language/pure/compiler/toPureGraph/DataQualityCompilerExtension.java b/legend-engine-xts-dataquality/legend-engine-xt-dataquality-compiler/src/main/java/org/finos/legend/engine/language/pure/compiler/toPureGraph/DataQualityCompilerExtension.java
index e7f298ddfeb..935c59eca97 100644
--- a/legend-engine-xts-dataquality/legend-engine-xt-dataquality-compiler/src/main/java/org/finos/legend/engine/language/pure/compiler/toPureGraph/DataQualityCompilerExtension.java
+++ b/legend-engine-xts-dataquality/legend-engine-xt-dataquality-compiler/src/main/java/org/finos/legend/engine/language/pure/compiler/toPureGraph/DataQualityCompilerExtension.java
@@ -71,7 +71,7 @@ public MutableList group()
return org.eclipse.collections.impl.factory.Lists.mutable.with("PackageableElement", "DataQualityValidation");
}
- static final ConcurrentHashMap dataQualityIndex = new ConcurrentHashMap<>();
+ static final ConcurrentHashMap> dataQualityIndex = new ConcurrentHashMap<>();
@Override
public CompilerExtension build()
@@ -106,11 +106,7 @@ public Iterable extends Processor>> getExtraProcessors()
},
(dataquality, compileContext) ->
{
-
- },
- (dataquality, compileContext) ->
- {
- Root_meta_external_dataquality_DataQuality metamodel = dataQualityIndex.get(compileContext.pureModel.buildPackageString(dataquality._package, dataquality.name));
+ Root_meta_external_dataquality_DataQuality