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

Replace deprecated JexlArithmetic.compare() #2490

Closed

Conversation

SethSmucker
Copy link
Collaborator

The previous version used a String instead of a JexlOperator for the operator parameter. The following classes have been updated to use JexlArithmetic.compare(Object left, Object right, JexlOperator operator):

  • datawave.query.jexl.DatawaveArithmetic
  • datawave.query.jexl.DefaultArithmetic
  • datawave.query.jexl.HitListArithmetic

part of #2443

avgAGB
avgAGB previously approved these changes Aug 4, 2024
apmoriarty
apmoriarty previously approved these changes Aug 5, 2024
@@ -221,7 +222,7 @@ public boolean lessThan(final Object left, final Object right) {
for (final Object o : set) {
Object normalizedO = ValueTuple.getNormalizedValue(o);
Object normalizedRight = ValueTuple.getNormalizedValue(right);
if (compare(normalizedO, normalizedRight, LESS_THAN) < 0) {
if (compare(normalizedO, normalizedRight, JexlOperator.LT) < 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think the string constants on line 26 are needed anymore

Copy link
Collaborator

Choose a reason for hiding this comment

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

+1

Copy link
Collaborator

Choose a reason for hiding this comment

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

still not resolved

foster33
foster33 previously approved these changes Aug 5, 2024
Copy link
Collaborator

@ivakegg ivakegg left a comment

Choose a reason for hiding this comment

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

Remove unused constants

@ivakegg
Copy link
Collaborator

ivakegg commented Sep 12, 2024

Why am I seeing changes to all of the docker files in the submodules in this PR. Also the formatting is failing.

@SethSmucker
Copy link
Collaborator Author

Why am I seeing changes to all of the docker files in the submodules in this PR. Also the formatting is failing.

I think that they're from changes merged from integration, but I could be wrong. I've been working on the sub-modules in their own directories, so that could be it too.

@SethSmucker SethSmucker force-pushed the task/replace-deprecated-jexlarithmetic-compare branch from 00b1af2 to d779781 Compare September 13, 2024 15:25
@SethSmucker SethSmucker force-pushed the task/replace-deprecated-jexlarithmetic-compare branch from d779781 to 2525399 Compare September 16, 2024 16:11
@ivakegg ivakegg added the MXTC label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants