# as\_query\_limit is documented but no declaration or symbol included in library (AER-3141)

**URL:** <https://discuss.aerospike.com/t/as-query-limit-is-documented-but-no-declaration-or-symbol-included-in-library-aer-3141/538>\
**Category:** C Client Library\
**Created:** [November 24, 2014, 5:23pm UTC](https://discuss.aerospike.com/t/as-query-limit-is-documented-but-no-declaration-or-symbol-included-in-library-aer-3141/538 "2014-11-24T17:23:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dlhero](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/dlhero/32/79_2.png) [@dlhero](https://discuss.aerospike.com/u/dlhero)\
**Post date:** [November 24, 2014, 5:23pm UTC](https://discuss.aerospike.com/t/as-query-limit-is-documented-but-no-declaration-or-symbol-included-in-library-aer-3141/538/1 "2014-11-24T17:23:13Z")

</div>

Hello,

I’m trying to limit the number of results returned by _aerospike\_query\_foreach_. My sample code is very similar to the examples shipped with the c client library for ubuntu.

> ```
> as_query *query;
> query = malloc(sizeof(as_query));
> as_query_init(query, g_namespace, g_set);
> 
> as_query_select_init(query, 2);
> as_query_select(query, "stamp");
> as_query_select(query, "originalId");
> 
> ```

> ```
> as_query_limit(query, 100);
> as_query_where_init(query, 1);
> as_query_where(query, "stamp", integer_range(1, 9999999999));
> 
> ```

The as\_query\_limit() function is documented here: [C Client API: Query Operations](http://www.aerospike.com/apidocs/c/de/d96/group __query__ operations.html#gaa24ff1ca902418ca7387e7eab9da396b)

and in aerospike\_query.h

The version of aerospike c-client library i’m using is: 3.0.87 on Ubuntu, specifically, _aerospike-client-c-3.0.87.ubuntu12.04.x86\_64_

When I compile my program, I get this error: /root/aerospike-units/query/query-performance.c:80: undefined reference to `as\_query\_limit’

Inspecting libaerospike.a and libaerospike.so for symbols reveal no results:

> ```
> $ nm /usr/lib/libaerospike.a /usr/lib/libaerospike.so | grep -i as_query_limit
> $
> $ nm /usr/lib/libaerospike.a /usr/lib/libaerospike.so | grep -i query_limit
> 0000000000001fa2 T cl_query_limit
> 000000000001afd2 T cl_query_limit
> 
> ```

Iis this a bug or on purpose?

Best Regards, Leonidas Tsampros

---

<div class="post-metadata">

**Author:** ![wchu](https://avatars.discourse-cdn.com/v4/letter/w/a5b964/32.png) [@wchu](https://discuss.aerospike.com/u/wchu)\
**Post date:** [December 2, 2014, 2:34am UTC](https://discuss.aerospike.com/t/as-query-limit-is-documented-but-no-declaration-or-symbol-included-in-library-aer-3141/538/2 "2014-12-02T02:34:01Z")

</div>

The documentation is erroneous. Currently as\_query\_limit() is not implemented. Documentation will be updated. Thanks.

---

<div class="post-metadata">

**Author:** ![dlhero](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/dlhero/32/79_2.png) [@dlhero](https://discuss.aerospike.com/u/dlhero)\
**Post date:** [December 3, 2014, 9:35am UTC](https://discuss.aerospike.com/t/as-query-limit-is-documented-but-no-declaration-or-symbol-included-in-library-aer-3141/538/3 "2014-12-03T09:35:15Z")

</div>

Are there any plans for this to get implemented?

---

<div class="post-metadata">

**Author:** ![wchu](https://avatars.discourse-cdn.com/v4/letter/w/a5b964/32.png) [@wchu](https://discuss.aerospike.com/u/wchu)\
**Post date:** [January 4, 2015, 12:02am UTC](https://discuss.aerospike.com/t/as-query-limit-is-documented-but-no-declaration-or-symbol-included-in-library-aer-3141/538/4 "2015-01-04T00:02:33Z")

</div>

Yes. Had some discussion internally. We plan to have this work prioritized. Will report when we have a more predictable “when”.

---

<div class="post-metadata">

**Author:** ![Mnemaudsyne](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/mnemaudsyne/32/200_2.png) [@Mnemaudsyne](https://discuss.aerospike.com/u/Mnemaudsyne)\
**Post date:** [May 22, 2015, 1:24am UTC](https://discuss.aerospike.com/t/as-query-limit-is-documented-but-no-declaration-or-symbol-included-in-library-aer-3141/538/5 "2015-05-22T01:24:42Z")

</div>

@dlhero,

A JIRA has been filed to follow up on this; it’s AER-3141, just for reference. Please stay tuned for updates on our progress (but we still can’t give an answer re: when the work will be done).

Cheers,

Maud
