cxzl25 commented on pull request #33114: URL: https://github.com/apache/spark/pull/33114#issuecomment-869361485
## Spark https://github.com/apache/spark/blob/0da463e59304954515f003f98574c740b47b89fb/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveShim.scala#L557-L571 ## Hive ``` java private boolean addToMetastore(String dbName, String functionName, String registeredName) throws HiveException { Function function = new Function(functionName, dbName, desc.getClassName(), SessionState.get().getUserName(), PrincipalType.USER, (int) (System.currentTimeMillis() / 1000), FunctionType.JAVA, desc.getResources()); context.getDb().createFunction(function); ``` https://github.com/apache/hive/blob/7b3ecf617a6d46f48a3b6f77e0339fd4ad95a420/ql/src/java/org/apache/hadoop/hive/ql/ddl/function/create/CreateFunctionOperation.java#L189-L195 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
