Skip to content

Commit

Permalink
Add BigInteger and BigDecimal types to MatchFilter.java
Browse files Browse the repository at this point in the history
  • Loading branch information
georgecwan committed Dec 4, 2023
1 parent 414be28 commit 1a28a31
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
import org.jetbrains.annotations.NotNull;
import org.jpy.PyObject;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.Instant;
import java.util.*;

Expand Down Expand Up @@ -284,6 +286,22 @@ Object convertStringLiteral(String str) {
}
};
}
if (cls == BigDecimal.class) {
return new ColumnTypeConvertor() {
@Override
Object convertStringLiteral(String str) {
return new BigDecimal(str);
}
};
}
if (cls == BigInteger.class) {
return new ColumnTypeConvertor() {
@Override
Object convertStringLiteral(String str) {
return new BigInteger(str);
}
};
}
if (cls == String.class) {
return new ColumnTypeConvertor() {
@Override
Expand Down

0 comments on commit 1a28a31

Please sign in to comment.