You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by 李斌松 <li...@gmail.com> on 2017/05/23 06:13:20 UTC

Custom function cannot be accessed across database

Custom function cannot be accessed across database,
example: The registration function json_extract_value is in database A, and
A.json_extract_value cannot be called in the database B

SessionCatalog.java

externalCatalog.getFunction(currentDb, name.funcName)

to

externalCatalog.getFunction(name.database.getOrElse(currentDb), name.funcName)