Articles in this section

How to check content of a UDF from aql?

Context

To check the content of a lua UDF module you can run the following command:
 
desc module <LUAFILE>

 

Method

Example:
 
aql> show modules
+--------------+--------------------------------------------+-------+
| filename     | hash                                       | type  |
+--------------+--------------------------------------------+-------+
| "getlut.lua" | "4633cda9b9bfde6eb8f049571bb3cd508e4afd4a" | "LUA" |
+--------------+--------------------------------------------+-------+
[127.0.0.1:3000] 1 row in set (0.001 secs)

OK

aql> desc  module getlut.lua
+-----------------------------------------------------------------+-------+
| content                                                         | type  |
+-----------------------------------------------------------------+-------+
| "function getLUT(r)
    return record.last_update_time(r)
end
" | "LUA" |
+-----------------------------------------------------------------+-------+
[127.0.0.1:3000] 1 row in set (0.002 secs)

OK

 

Applies To Earliest Version

Pre 4.9

Applies To Latest Version

Current Version
Was this article helpful?
0 out of 0 found this helpful