From efe7dbd411d83f9d71a58336bbc229601c95ffb2 Mon Sep 17 00:00:00 2001 From: Dichao Hu Date: Fri, 12 Jan 2024 15:33:54 -0500 Subject: [PATCH] Fix Bug in Trino Map ValueType valueType() should return the valueType instead of the keytype of the map --- .../java/com/linkedin/transport/trino/types/TrinoMapType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transportable-udfs-trino/src/main/java/com/linkedin/transport/trino/types/TrinoMapType.java b/transportable-udfs-trino/src/main/java/com/linkedin/transport/trino/types/TrinoMapType.java index 94d70602..6d2533ff 100644 --- a/transportable-udfs-trino/src/main/java/com/linkedin/transport/trino/types/TrinoMapType.java +++ b/transportable-udfs-trino/src/main/java/com/linkedin/transport/trino/types/TrinoMapType.java @@ -26,7 +26,7 @@ public StdType keyType() { @Override public StdType valueType() { - return TrinoWrapper.createStdType(mapType.getKeyType()); + return TrinoWrapper.createStdType(mapType.getValueType()); } @Override