From 16eb011621d1e2d97be625a3119fbcbead75fe3d Mon Sep 17 00:00:00 2001 From: tsantalis Date: Sun, 19 Jan 2025 09:42:49 -0500 Subject: [PATCH] Enable detection of Extract Variable in commit https://github.com/apache/iceberg/commit/f0911127fdfa59143f18c987620fe012e16f8200 core/src/test/java/org/apache/iceberg/TestMetrics.java --- .../gr/uom/java/xmi/decomposition/StringBasedHeuristics.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/gr/uom/java/xmi/decomposition/StringBasedHeuristics.java b/src/main/java/gr/uom/java/xmi/decomposition/StringBasedHeuristics.java index 06c3ef18c..333829231 100644 --- a/src/main/java/gr/uom/java/xmi/decomposition/StringBasedHeuristics.java +++ b/src/main/java/gr/uom/java/xmi/decomposition/StringBasedHeuristics.java @@ -2473,6 +2473,9 @@ else if(initializer1 != null && initializer1.getExpression().equals(replacement. if(typeReplacement && !type1.compatibleTypes(type2) && variableRename && (initializerReplacement || nullInitializer || zeroArgumentClassInstantiation || classInstantiationArgumentReplacement)) { return true; } + if(type1.equals(type2) && type1.getClassType().equals("int") && variableRename && initializerReplacement) { + return true; + } } return false; }