You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: DRAFT_RELEASE_NOTES.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Spark and PySpark have been upgraded from version 3.5.2 to 3.5.4.
15
15
## Record Relation
16
16
To enable nested data records, we have added a new relation feature to the record metamodel. This allows records to reference other records. For more details, refer to the [Record Relation Options](https://boozallen.github.io/aissemble/aissemble/current-dev/record-metamodel.html#_record_relation_options).
17
17
Several features are still a work in progress:
18
-
- PySpark and Spark based validation for records with a One to Many multiplicity. (Object validation is available.)
18
+
- PySpark and Spark schema based validation for relations will only validate the record and not its relations. Object based validation for relations is available.
19
19
20
20
## Helm Charts Resource Specification
21
21
The following Helm charts have been updated to include the configuration options for specifying container resource requests/limits:
Copy file name to clipboardexpand all lines: foundation/foundation-mda/src/main/resources/templates/data-delivery-data-records/pyspark.schema.base.py.vm
+6
Original file line number
Diff line number
Diff line change
@@ -166,6 +166,8 @@ class ${record.capitalizedName}SchemaBase(ABC):
Copy file name to clipboardexpand all lines: foundation/foundation-mda/src/main/resources/templates/data-delivery-data-records/spark.schema.base.java.vm
+6
Original file line number
Diff line number
Diff line change
@@ -164,6 +164,8 @@ public abstract class ${record.capitalizedName}SchemaBase extends SparkSchema {
Copy file name to clipboardexpand all lines: test/test-mda-models/aissemble-test-data-delivery-pyspark-model/tests/features/pyspark_schema_relations.feature
+7-4
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ Feature: Pyspark schema functionality works for relations
23
23
When a "City" object is mapped to a spark dataset using the record
24
24
Then the dataset has the correct values for the relational objects
25
25
26
+
# TODO validation for invalid relations should fail
26
27
Scenario Outline: Records with a One to One relation can be validated using the spark schema
27
28
Given the spark schema is generated for the "PersonWithOneToOneRelation" record
28
29
And a "<validity>""PersonWithOneToOneRelation" dataSet exists
@@ -31,8 +32,9 @@ Feature: Pyspark schema functionality works for relations
31
32
Examples:
32
33
| validity | success |
33
34
| valid | passes |
34
-
| invalid | fails |
35
+
| invalid | passes |
35
36
37
+
# TODO validation for invalid relations should fail
36
38
Scenario Outline: Records with a Many to One relation can be validated using the spark schema
37
39
Given the spark schema is generated for the "PersonWithMToOneRelation" record
38
40
And a "<validity>""PersonWithMToOneRelation" dataSet exists
@@ -41,13 +43,14 @@ Feature: Pyspark schema functionality works for relations
41
43
Examples:
42
44
| validity | success |
43
45
| valid | passes |
44
-
| invalid | fails |
46
+
| invalid | passes |
45
47
46
-
Scenario Outline: Spark schemas generated fails to validate One to Many relations with not yet implemented exception
48
+
# TODO validation for One to Many relations should include pass/fail testing
49
+
Scenario Outline: Spark schemas generated validates One to Many relations
47
50
Given the spark schema is generate for the "City" record
48
51
And a "City" dataSet with "<valid_size>" valid "Street" and "<invalid_size>" invalid streets exists
49
52
When spark schema validation is performed on the "City" dataSet
50
-
Then the dataSet validation raises a not implemented error
Copy file name to clipboardexpand all lines: test/test-mda-models/test-data-delivery-spark-model/src/test/java/com/boozallen/aiops/mda/pattern/SparkSchemaTest.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -162,8 +162,8 @@ public void sparkSchemaValidationIsPerformedOnThePersonWithMToOneRelationDataSet
162
162
}
163
163
}
164
164
165
-
@When("spark schema validation is performed on the dataSet")
0 commit comments