# \#lua

**URL:** https://discuss.aerospike.com/tag/lua/27.md

[Latest](https://discuss.aerospike.com/latest.md) · [Categories](https://discuss.aerospike.com/categories.md) · [Tags](https://discuss.aerospike.com/tags.md)

---

## [Aerospike Lua Protobuf pb.so: undefined symbol: lua\_settop](https://discuss.aerospike.com/t/aerospike-lua-protobuf-pb-so-undefined-symbol-lua-settop/11448)

<div class="topic-metadata">

**Author:** [@sleshJdev](https://discuss.aerospike.com/u/sleshJdev)\
**Replies:** 5\
**Last updated:** [September 26, 2024, 11:15pm UTC](https://discuss.aerospike.com/t/aerospike-lua-protobuf-pb-so-undefined-symbol-lua-settop/11448 "2024-09-26T23:15:37Z")

</div>

I try to run simple lua udf in docker and keep getting this error: ERROR lua create error: error loading module 'protobuf.pb' from file '/usr/local/lib/lua/5.1/protobuf/pb.so': /usr/local/lib/lua/5.1/protobuf/pb…

---

## [Aerospike lua protobuf](https://discuss.aerospike.com/t/aerospike-lua-protobuf/11451)

<div class="topic-metadata">

**Author:** [@sleshJdev](https://discuss.aerospike.com/u/sleshJdev)\
**Replies:** 0\
**Last updated:** [September 6, 2024, 11:18am UTC](https://discuss.aerospike.com/t/aerospike-lua-protobuf/11451 "2024-09-06T11:18:06Z")

</div>

In this example Protobuf Module Example | Developer, it installs protobuf directly using luarocks which suppose that lua already installed on the machine. What lua is actually used in that example - the one from Aerospil…

---

## [Record manipulation with more than one filter - lua](https://discuss.aerospike.com/t/record-manipulation-with-more-than-one-filter-lua/3637)

<div class="topic-metadata">

**Author:** [@K\_Nag](https://discuss.aerospike.com/u/K_Nag)\
**Replies:** 5\
**Last updated:** [December 12, 2019, 6:46pm UTC](https://discuss.aerospike.com/t/record-manipulation-with-more-than-one-filter-lua/3637 "2019-12-12T18:46:20Z")

</div>

Hi, I have a range query with three restrictions. i wrote a StreamUDF with one filter function for every condition and it didn´t work. The query: SELECT id1, id2, link\_type, visibility, data, time, version FROM linkta…

---

## [Context-aware Aggregation in LUA](https://discuss.aerospike.com/t/context-aware-aggregation-in-lua/6796)

<div class="topic-metadata">

**Author:** [@fschaeffler](https://discuss.aerospike.com/u/fschaeffler)\
**Replies:** 4\
**Last updated:** [November 14, 2019, 9:08am UTC](https://discuss.aerospike.com/t/context-aware-aggregation-in-lua/6796 "2019-11-14T09:08:31Z")

</div>

I’m fairly new to Aerospike, UDFs, and LUA. However, I can’t get my head around how to solve such an issue where I need to have a context-aware aggregation. Any directions would be amazingly helpful. Use Case: A click-s…

---

## [(SOLVED) Create map with numeric key (using UDF\\Lua)](https://discuss.aerospike.com/t/solved-create-map-with-numeric-key-using-udf-lua/6280)

<div class="topic-metadata">

**Author:** [@Artem](https://discuss.aerospike.com/u/Artem)\
**Replies:** 1\
**Last updated:** [May 30, 2019, 9:33am UTC](https://discuss.aerospike.com/t/solved-create-map-with-numeric-key-using-udf-lua/6280 "2019-05-30T09:33:21Z")

</div>

How to create map with numeric key with aerospike’s map-interface ? There isn’t any example how to create map with numeric key. Does it support via lua-script ?

---

## [Lua Plugin Support from Kong-API Gateway to Aerospike Databse](https://discuss.aerospike.com/t/lua-plugin-support-from-kong-api-gateway-to-aerospike-databse/6033)

<div class="topic-metadata">

**Author:** [@Shikhil\_Gupta](https://discuss.aerospike.com/u/Shikhil_Gupta)\
**Replies:** 3\
**Last updated:** [March 20, 2019, 3:21pm UTC](https://discuss.aerospike.com/t/lua-plugin-support-from-kong-api-gateway-to-aerospike-databse/6033 "2019-03-20T15:21:40Z")

</div>

Since we are planning to use Aerospike as cache server sit behind Reverse proxy server(Kong API Gateway). So does aerospike provide any Lua Client support which will talk to Aerospike cache server?

---

## [Lua record.key function returns nil](https://discuss.aerospike.com/t/lua-record-key-function-returns-nil/5590)

<div class="topic-metadata">

**Author:** [@Artem](https://discuss.aerospike.com/u/Artem)\
**Replies:** 2\
**Last updated:** [October 15, 2018, 9:49pm UTC](https://discuss.aerospike.com/t/lua-record-key-function-returns-nil/5590 "2018-10-15T21:49:41Z")

</div>

Hello, I have problem with function record.key(rec) which described on https://www.aerospike.com/docs/udf/api/record.html This function returns nil when I do record.key(rec) into my lua-script From link metnioned abov…

---

## [Strange behaviour of map.pairs for Long keys](https://discuss.aerospike.com/t/strange-behaviour-of-map-pairs-for-long-keys/4779)

<div class="topic-metadata">

**Author:** [@TimothyKlim](https://discuss.aerospike.com/u/TimothyKlim)\
**Replies:** 0\
**Last updated:** [November 27, 2017, 9:02pm UTC](https://discuss.aerospike.com/t/strange-behaviour-of-map-pairs-for-long-keys/4779 "2017-11-27T21:02:58Z")

</div>

Hi, I have a simple udf method for updating bin as a Map\[Long, Int\] to nil value: function terminate\_user\_node(rec, node\_id) for key, value in map.pairs(rec\['auths'\]) do if (value == node\_id) then rec\['auth…

---

## [Getting a list of values using lua and aerospike aql](https://discuss.aerospike.com/t/getting-a-list-of-values-using-lua-and-aerospike-aql/4021)

<div class="topic-metadata">

**Author:** [@JuspB](https://discuss.aerospike.com/u/JuspB)\
**Replies:** 0\
**Last updated:** [April 4, 2017, 3:25pm UTC](https://discuss.aerospike.com/t/getting-a-list-of-values-using-lua-and-aerospike-aql/4021 "2017-04-04T15:25:26Z")

</div>

Hello, I have the following set in aerospike: INSERT INTO test.set (PK,DAY\_OF\_MONTH,YEAR,value) VALUES (1,2,2017,10) INSERT INTO test.set (PK,DAY\_OF\_MONTH,YEAR,value) VALUES (2,2,2017,11) INSERT INTO test.set (PK,DAY\_O…

---

## [Error registering Lua UDFs](https://discuss.aerospike.com/t/error-registering-lua-udfs/3631)

<div class="topic-metadata">

**Author:** [@Ganet](https://discuss.aerospike.com/u/Ganet)\
**Replies:** 4\
**Last updated:** [December 6, 2016, 10:31am UTC](https://discuss.aerospike.com/t/error-registering-lua-udfs/3631 "2016-12-06T10:31:09Z")

</div>

Hello, I am having a problem with the lua registration using aerospike-client-java with : mod-lua { cache-enabled true } Every time I try to register a huge amount of lua files (our system uses a dynamic schema based …

---

## [Difficulty registering UDF Files](https://discuss.aerospike.com/t/difficulty-registering-udf-files/2466)

<div class="topic-metadata">

**Author:** [@Crags](https://discuss.aerospike.com/u/Crags)\
**Replies:** 8\
**Last updated:** [October 28, 2016, 9:35am UTC](https://discuss.aerospike.com/t/difficulty-registering-udf-files/2466 "2016-10-28T09:35:29Z")

</div>

Hi. I’m trying to run through some of the example UDF work but am unable to register the UDF with the Aerospike server. I keep getting: Error\[100\]: error=invalid\_filename I have the UDF file on the client in a folder …

---

## [How to write UDF to parse java written map value to Lua table?](https://discuss.aerospike.com/t/how-to-write-udf-to-parse-java-written-map-value-to-lua-table/3427)

<div class="topic-metadata">

**Author:** [@ChenShuai1981](https://discuss.aerospike.com/u/ChenShuai1981)\
**Replies:** 0\
**Last updated:** [September 20, 2016, 8:35am UTC](https://discuss.aerospike.com/t/how-to-write-udf-to-parse-java-written-map-value-to-lua-table/3427 "2016-09-20T08:35:29Z")

</div>

Here is my schema: deviceId → { segId → {value: …, ttl: 1234} }, each device has many seginfos and each seginfo has “ttl” field to determine expire or not. Now we want to write an UDF to scan all records and find those …

---

## [PR - memory leak in lua](https://discuss.aerospike.com/t/pr-memory-leak-in-lua/2495)

<div class="topic-metadata">

**Author:** [@tivvit](https://discuss.aerospike.com/u/tivvit)\
**Replies:** 3\
**Last updated:** [March 1, 2016, 2:11pm UTC](https://discuss.aerospike.com/t/pr-memory-leak-in-lua/2495 "2016-03-01T14:11:15Z")

</div>

Hi, I think this is quite important, I will be glad if you will have time to look at it.

---

## [Graph traversal using UDF](https://discuss.aerospike.com/t/graph-traversal-using-udf/2127)

<div class="topic-metadata">

**Author:** [@yesteapea](https://discuss.aerospike.com/u/yesteapea)\
**Replies:** 2\
**Last updated:** [February 4, 2016, 4:51am UTC](https://discuss.aerospike.com/t/graph-traversal-using-udf/2127 "2016-02-04T04:51:04Z")

</div>

I have edges of graph stored (to be more specific, the graph is bunch of trees aka forest) in aerospike. I want to do some basic traversal and find the root. This i can do in client level, by getting a parent until i re…

---

## [Multiple parameters in Query Multiple Filters](https://discuss.aerospike.com/t/multiple-parameters-in-query-multiple-filters/2241)

<div class="topic-metadata">

**Author:** [@kunalb](https://discuss.aerospike.com/u/kunalb)\
**Replies:** 0\
**Last updated:** [December 9, 2015, 12:55pm UTC](https://discuss.aerospike.com/t/multiple-parameters-in-query-multiple-filters/2241 "2015-12-09T12:55:07Z")

</div>

I have referred http://www.aerospike.com/community/labs/query\_multiple\_filters.html and am able to query based on the given lua script for 1 filter parameter. Can someone modify that lua script for accepting 3 filter par…

---

## [Commonly used library of functions](https://discuss.aerospike.com/t/commonly-used-library-of-functions/1775)

<div class="topic-metadata">

**Author:** [@joewei](https://discuss.aerospike.com/u/joewei)\
**Replies:** 7\
**Last updated:** [October 23, 2015, 2:28pm UTC](https://discuss.aerospike.com/t/commonly-used-library-of-functions/1775 "2015-10-23T14:28:09Z")

</div>

We have several Lua scripts for different aggregations. Each aggregation is in a separate file. But for all files common there is the filter function, right now we have a redundant copy of that function in every script…
