Skip to content

Conversation

@hlgp
Copy link
Collaborator

@hlgp hlgp commented Apr 15, 2025

if a regex is lossy add the eval_only node to the group of nodes created by looping through all normalizers

requires: NationalSecurityAgency/datawave-type-utils#41

if a regex is lossy add the eval_only node to the group of nodes created by looping through all normalizers
// now we need to combine these two nodes so that both are required
JexlNode combined = JexlNodeFactory.createAndNode(Arrays.asList(new JexlNode[] {normalizedNode, evalOnly}));
normalizedNodes.add(combined);
// if the normalized term is identical to the original term, it cannot be lossy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move this outside the normalizedTerms.contains check

failedNormalization = !fieldName.equals(Constants.ANY_FIELD);
}
}
// todo: this merits further scrutiny
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check again at 11PM

@ivakegg
Copy link
Collaborator

ivakegg commented Jun 30, 2025

merging manually

@ivakegg ivakegg closed this Jun 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants