From 24f6f65220f6cf7f12d523d10b3ed59d8f6dc76d Mon Sep 17 00:00:00 2001 From: Nathaniel Bauernfeind Date: Fri, 7 Jun 2024 11:05:23 -0600 Subject: [PATCH] Fix ExactMatch Filter for Non-Convertible Types --- .../deephaven/engine/table/impl/select/MatchFilter.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/MatchFilter.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/MatchFilter.java index 2144b522bb1..5446022278e 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/MatchFilter.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/MatchFilter.java @@ -497,8 +497,13 @@ Object convertStringLiteral(String str) { } }; } - throw new IllegalArgumentException( - "Unknown type " + cls.getName() + " for MatchFilter value auto-conversion"); + return new ColumnTypeConvertor() { + @Override + Object convertStringLiteral(String str) { + throw new IllegalArgumentException( + "Can't convert String to " + cls.getName() + " for MatchFilter value auto-conversion"); + } + }; } }