private int dropMacro(DropMacroDesc dropMacroDesc) { try { FunctionRegistry.unregisterTemporaryUDF(dropMacroDesc.getMacroName()); return 0; } catch (HiveException e) { LOG.info("drop macro: ", e); return 1; } }
private int dropTemporaryFunction(DropFunctionDesc dropFunctionDesc) { try { FunctionRegistry.unregisterTemporaryUDF(dropFunctionDesc.getFunctionName()); return 0; } catch (HiveException e) { LOG.info("drop function: ", e); return 1; } }
public static void unregisterPermanentFunction(String functionName) throws HiveException { system.unregisterFunction(functionName); unregisterTemporaryUDF(functionName); }
public static void unregisterPermanentFunction(String functionName) throws HiveException { system.unregisterFunction(functionName); unregisterTemporaryUDF(functionName); }
private int dropMacro(DropMacroDesc dropMacroDesc) { try { FunctionRegistry.unregisterTemporaryUDF(dropMacroDesc.getMacroName()); return 0; } catch (HiveException e) { LOG.info("drop macro: " + StringUtils.stringifyException(e)); return 1; } }
private int dropTemporaryFunction(DropFunctionDesc dropFunctionDesc) { try { FunctionRegistry.unregisterTemporaryUDF(dropFunctionDesc.getFunctionName()); return 0; } catch (HiveException e) { LOG.info("drop function: " + StringUtils.stringifyException(e)); return 1; } }
FunctionRegistry.unregisterTemporaryUDF("test_udaf"); FunctionRegistry.unregisterTemporaryUDF("test_error");
public static void unregisterPermanentFunction(String functionName) throws HiveException { system.unregisterFunction(functionName); unregisterTemporaryUDF(functionName); }
private int dropFunction(DropFunctionDesc dropFunctionDesc) { try { FunctionRegistry.unregisterTemporaryUDF(dropFunctionDesc .getFunctionName()); return 0; } catch (HiveException e) { LOG.info("drop function: " + StringUtils.stringifyException(e)); return 1; } }
private int dropMacro(DropMacroDesc dropMacroDesc) { try { FunctionRegistry.unregisterTemporaryUDF(dropMacroDesc.getMacroName()); return 0; } catch (HiveException e) { LOG.info("drop macro: " + StringUtils.stringifyException(e)); return 1; } }
private int dropTemporaryFunction(DropFunctionDesc dropFunctionDesc) { try { FunctionRegistry.unregisterTemporaryUDF(dropFunctionDesc.getFunctionName()); return 0; } catch (HiveException e) { LOG.info("drop function: " + StringUtils.stringifyException(e)); return 1; } }