evadb.EvaDBQuery.limit#

EvaDBQuery.limit(num: int) EvaDBQuery[source]#

Limits the result count to the number specified.

Parameters:

num (int) – Number of records to return. Will return num records or all records if the Relation contains fewer records.

Returns:

Relation with subset of records

Return type:

EvaDBQuery

Examples

>>> relation = conn.table("sample_table")
>>> relation.limit(10)