---
title: getDefaultReadLimit
description: "DataSourceStreamReader.getDefaultReadLimit method in PySpark: Returns the read limit potentially passed to the data source through options when creating the data source."
canonical_url: https://docs.databricks.com/gcp/en/pyspark/reference/classes/datasourcestreamreader/getDefaultReadLimit
---

# getDefaultReadLimit

Returns the read limit potentially passed to the data source through options when creating the data source.

Implementing this method is optional. By default, it returns `ReadAllAvailable`, which means there is no limit on the amount of data returned by `latestOffset()`.

## Syntax

```
getDefaultReadLimit()
```

## Returns

`ReadLimit`

The default read limit for this data source. See the built-in implementations of `ReadLimit` for available read limits.
