MCPcopy Create free account
hub / github.com/apache/impala / addFunction

Method addFunction

fe/src/main/java/org/apache/impala/catalog/Catalog.java:387–391  ·  view source on GitHub ↗

Adds a function to the catalog. Returns true if the function was successfully added. Returns false if the function already exists. TODO: allow adding a function to a global scope. We probably want this to resolve after the local scope. e.g. if we had fn() and db.fn(). If the current database is 'db'

(Function fn)

Source from the content-addressed store, hash-verified

385 * resolve first to db.fn().
386 */
387 public boolean addFunction(Function fn) {
388 Db db = getDb(fn.dbName());
389 if (db == null) return false;
390 return db.addFunction(fn);
391 }
392
393 /**
394 * Returns the function that best matches 'desc' that is registered with the

Callers

nothing calls this directly

Calls 3

getDbMethod · 0.95
addFunctionMethod · 0.95
dbNameMethod · 0.80

Tested by

no test coverage detected