From eef8eee8ce875c303b426f320f34a865b09e541c Mon Sep 17 00:00:00 2001 From: Runkang He Date: Thu, 26 Oct 2023 11:15:30 +0800 Subject: [PATCH] Add Nullable annotation --- core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java b/core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java index b0bd8dfe224a..59741c10bab1 100644 --- a/core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java +++ b/core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java @@ -321,7 +321,7 @@ public static ByteString fromHex(String hex) { } /** SQL UNHEX(varchar) function. */ - public static ByteString unHex(String hex) { + public static @Nullable ByteString unHex(String hex) { try { return fromHexHelper(hex); } catch (DecoderException e) {