From 3fabda2c1b61d825d46d6a5e26ee72b0037611e5 Mon Sep 17 00:00:00 2001 From: sb89594 <147619318+sb89594@users.noreply.github.com> Date: Fri, 20 Oct 2023 07:31:36 +0000 Subject: [PATCH] removed unused variable and modified catch --- .../druid/query/expression/IPv6AddressMatchExprMacro.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/processing/src/main/java/org/apache/druid/query/expression/IPv6AddressMatchExprMacro.java b/processing/src/main/java/org/apache/druid/query/expression/IPv6AddressMatchExprMacro.java index 4bf9ae27102b..0f3b65bd5e77 100644 --- a/processing/src/main/java/org/apache/druid/query/expression/IPv6AddressMatchExprMacro.java +++ b/processing/src/main/java/org/apache/druid/query/expression/IPv6AddressMatchExprMacro.java @@ -68,7 +68,6 @@ public Expr apply(final List args) try { final Expr arg = args.get(0); final IPAddressString blockString = getSubnetInfo(args); - final IPAddress block = blockString.toAddress().toPrefixBlock(); class IPv6AddressMatchExpr extends ExprMacroTable.BaseScalarUnivariateMacroFunctionExpr { @@ -121,7 +120,7 @@ public ExpressionType getOutputType(InputBindingInspector inspector) return new IPv6AddressMatchExpr(arg); } - catch (AddressStringException e) { + catch (Exception e) { throw processingFailed(e, "failed to parse address"); } }