Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import feature doesn't properly validate conformance rules if output is a struct #1954

Closed
Zejnilovic opened this issue Oct 22, 2021 · 2 comments · Fixed by #1971
Closed

Import feature doesn't properly validate conformance rules if output is a struct #1954

Zejnilovic opened this issue Oct 22, 2021 · 2 comments · Fixed by #1971
Assignees
Labels
bug Something isn't working Menas Menas component affected priority: high Critical to the health of the project

Comments

@Zejnilovic
Copy link
Contributor

Zejnilovic commented Oct 22, 2021

Describe the bug

When importing a dataset having conformance rules that have structs as outputs, the validation does not add subfields to the evolving schema. This fails the validation if the output subfields are used in subsequent conformance rules

To Reproduce

Steps to reproduce the behaviour OR commands run:

  1. Have a dataset
  2. Have Mapping conformance rule which output a struct
  3. Have any other rule using a subfield from output struct of the 2nd step
  4. Try importing this Dataset

Expected behaviour

Import passes

Additional context

Check Rules -> Mapping, Single Column, Coalesce

@Zejnilovic Zejnilovic added bug Something isn't working Menas Menas component affected priority: high Critical to the health of the project labels Oct 22, 2021
@Zejnilovic
Copy link
Contributor Author

Since this will have to introduce a Mapping table entity into the DatasetService, we will also validate the targetAttribute

@Zejnilovic Zejnilovic self-assigned this Nov 2, 2021
dk1844 added a commit that referenced this issue Nov 5, 2021
dk1844 added a commit that referenced this issue Nov 5, 2021
…nts broken down into multiple methods to make it readable
Zejnilovic added a commit that referenced this issue Nov 15, 2021
Co-authored-by: Daniel K <dk1844@gmail.com>
@Zejnilovic
Copy link
Contributor Author

Release Notes:
When importing a dataset a mapping table conformance rule can now output a struct and will be properly validated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Menas Menas component affected priority: high Critical to the health of the project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant