diff --git a/plugin/trino-mongodb/src/main/java/io/trino/plugin/mongodb/ptf/Query.java b/plugin/trino-mongodb/src/main/java/io/trino/plugin/mongodb/ptf/Query.java index 28d2737ec95c..13ca76862742 100644 --- a/plugin/trino-mongodb/src/main/java/io/trino/plugin/mongodb/ptf/Query.java +++ b/plugin/trino-mongodb/src/main/java/io/trino/plugin/mongodb/ptf/Query.java @@ -152,7 +152,7 @@ public static Document parseFilter(String filter) return Document.parse(filter); } catch (JsonParseException e) { - throw new TrinoException(INVALID_FUNCTION_ARGUMENT, "Can't parse 'filter' argument as json"); + throw new TrinoException(INVALID_FUNCTION_ARGUMENT, "Can't parse 'filter' argument as json", e); } }