make exception mesage more readable

This commit is contained in:
Yize Li 2021-03-17 11:52:09 +08:00
parent a9af18cc44
commit a20f407f98
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ public class RowExpressionCompiler
functionAndTypeManager);
return (new FunctionCallCodeGenerator()).generateExpression(call.getFunctionHandle(), generatorContext, call.getType(), call.getArguments());
default:
throw new IllegalArgumentException(format("Unsupported function implementation type in RowExpressionCompiler: %s", functionMetadata.getImplementationType()));
throw new IllegalArgumentException(format("Unsupported function implementation type in RowExpressionCompiler: %s. For the external function, we will support to execute them in the future release.", functionMetadata.getImplementationType()));
}
}

View File

@ -1604,7 +1604,7 @@ public class LocalExecutionPlanner
}
}
catch (RuntimeException e) {
throw new PrestoException(COMPILER_ERROR, "Compiler failed", e);
throw new PrestoException(COMPILER_ERROR, "Execution Compiler failed.", e);
}
}