Skip to content

Commit

Permalink
Sort out defects.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdunkerley committed Feb 20, 2025
1 parent 43dcad5 commit 2809d18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ static Column performComparison(

default boolean canApply(Column left, Object right) {
return right instanceof Column rightColumn
? canApply(left.getStorage(), rightColumn.getStorage())
: canApplyMap(left.getStorage(), right);
? canApply(getStorage(left), getStorage(rightColumn))
: canApplyMap(getStorage(left), right);
}

/** Can the map be applied to the pair of ColumnStorage and constant? */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package org.enso.table.data.column.operation.text;

import com.ibm.icu.impl.UnicodeRegex;
import java.util.HashMap;
import java.util.Map;
import java.util.function.BiPredicate;
import java.util.regex.Pattern;

import com.ibm.icu.impl.UnicodeRegex;
import org.enso.base.Regex_Utils;
import org.enso.base.Text_Utils;
import org.enso.table.data.column.operation.comparators.Comparators;
Expand Down Expand Up @@ -78,7 +77,8 @@ private static Pattern createRegexPatternFromSql(String sqlPattern) {
}

private static boolean LikePredicate(String left, String right) {
return regexCache.computeIfAbsent(right, TextPredicates::createRegexPatternFromSql)
return regexCache
.computeIfAbsent(right, TextPredicates::createRegexPatternFromSql)
.matcher(left)
.matches();
}
Expand Down

0 comments on commit 2809d18

Please sign in to comment.