Limits and troubleshooting
Limits and quotas#
| Limit | Value |
|---|---|
| Rows returned by a dataset or preview | 100,000 |
| Rows per page through the data API | up to 10,000 |
| Runs per session at the same time | 1 |
| Wait for a dataset run | 300 seconds |
| Idle session | released about 5 minutes after its last run |
| Output cache | up to 15 minutes |
| DuckDB memory | 80 percent of the compute's memory, at least 512 MB |
| DuckDB threads | the compute's CPU count, at least 2 |
| Spill location | /tmp/duckdb-spill |
| Agent run wait | 15 minutes |
| Corpus run | 10,000 documents, 50,000 Agent calls, 1 to 32 workers |
| REST connector request timeout | 60 seconds by default |
| Log line length before splitting | 200,000 characters |
Compute (CPU and memory) comes from the compute sizes defined for your site. A job has no maximum duration. A schedule that has an end time stops the run at that time.
Where results are limited
The 100,000 row limit applies to rows returned as output. Queries inside the run can process any amount of data that fits the compute's memory and local disk.
Things to know#
- DuckDB reads the lakehouse only. Use the Spark runtime to write lakehouse tables.
returnFormat="arrow"returns a reader in most places.query()and the file and database connectors return apyarrow.;RecordBatchReader readGzLakehousereturns apyarrow.Table. Call.read_all()on a reader.- One site per lakehouse connection per session. To use a second site, start a new session.
- Placeholders expand everywhere. Upper-case names such as
{USR}are replaced even in f-strings and comments. - pandas output turns numeric NaN into the text
NaNand datetimes into strings. Return a relation or Arrow table to keep types. - PDF OCR processes one document model at a time. Use the Spark runtime for distributed OCR.
- Identical dataset code is served from cache for up to 15 minutes.
- Some imports are blocked in jobs and datasets. Modules such as
socket,urllib,http,shutil,pathlib,pickle,sqlite3andthreadingcannot be imported. Use connections and the DuckDB engine instead.
Troubleshooting#
Each row gives the message you see, the cause and the fix. Messages are shown exactly as the runtime prints them.
| Symptom | Cause | Fix |
|---|---|---|
Either s3FullUrl or both bucketName and filePath must be provided |
A read or write was called without a location. The same form applies to readGcsFile and readAzureBlob. |
Pass s3FullUrl="s3://...", or both bucketName and filePath. |
S3 connection details for 'x' not found or the connection type is incorrect. |
The connection name does not exist in this site, is not an S3 connection, or was not attached to the run. | Check the spelling (names are case sensitive) and that the dataset or job has the connection selected. |
S3 connection details for 'x' are incomplete |
The S3 connection is missing a region, access key or secret. | Edit the connection in Groundzero. |
GZLAKEHOUSE writes are not supported from DuckDB for connection 'x'. DuckDB lakehouse access is read- |
writeGzLakehouse was called. |
Switch the job to the Spark runtime, or write to S3 or a database from DuckDB. |
Only read- |
readGzLakehouse accepts SELECT, SHOW, DESCRIBE and EXPLAIN only. |
Remove INSERT, UPDATE, DELETE, DDL and similar statements. |
Use fully qualified table names. |
A lakehouse query referenced a table without its database. | Write retail.orders, not orders. |
Either 'query' or 'tableName' must be provided |
readGzLakehouse was called with neither. |
Provide one. |
databaseName is required when tableName is not qualified |
You passed tableName="orders" and the connection has no default database. |
Use tableName="retail.. |
GZLAKEHOUSE 'x' has lakeHouseUrl but no siteName for REST catalog setup. |
The site for the connection cannot be worked out. | Pass siteName="..." or siteNames={"x": "..."} to duckSession, or siteName to readGzLakehouse. |
GZLAKEHOUSE connection 'x' is already configured for site 'a'; create a new DuckDB session to use site 'b'. |
One session can use one site per connection. | Create another duckSession for the second site. |
Authentication failed or You do not have permission (a PermissionError) |
The lakehouse rejected the user. | Ask a site administrator for Select permission on the table or database. |
Direct access to gz- |
Your code tried to read Groundzero's lakehouse storage directly. | Read the table through readGzLakehouse. |
Import of 'socket' is not allowed for security reasons (also eval() is not allowed for security reasons and Access to '/) |
The module, function or path is blocked in jobs and datasets. | Use connections for network access and /tmp for files. |
outputDF must be DuckDBPyRelation, pa. |
The value in outputDF (or passed to gz_output) is not a supported type. |
Convert with .df(), .to_arrow_table() or list(...). |
Page 3 is out of range. Total pages: 2 for page size 10. |
A preview asked for a page past the end of the result. | Ask for a page within the total. |
No executable code found. |
The run had no code, or the job file was empty. | Save the code and run again. |
The dataset session stopped responding before it took the run. Run the dataset again to start a new session. |
The session ended before your run started. | Run the dataset again. A new session starts. |
Connection not found: x |
A dataset or job references a connection that no longer exists in the site. | Recreate the connection or select another one. |
Invalid RTE |
The runtime name was not recognised. | Choose the runtime again in the runtime selector. |
Binder Error: Invalid named parameter "DELIMITER" for function read_ |
A key in readOptions is not a DuckDB option name. The read is tried three times, so you see the last error. |
Use the DuckDB name (delim or sep for the separator) and see the candidate list in the message. |
Unsupported returnFormat. Use 'duckdb', 'pandas', 'arrow', or 'row_ |
readSnowflake got another format. Other connectors accept duckdb, pandas and arrow. |
Use one of the listed formats. |
Out of Memory Error (duckdb.) |
The query needed more memory than the DuckDB limit and could not spill enough. | Filter and project earlier, avoid converting large relations to pandas, or choose a larger compute. Run current_ to see the limit. |
Could not parse query: . |
readGzLakehouse could not parse your SQL. |
Check for dialect-specific syntax. |
input has more than maxRows=100, |
A local record-linkage call received more rows than maxRows. |
Filter the input, or raise maxRows knowingly. |
TimeoutError from an Agent call |
The wait for an Agent run exceeded 15 minutes. The run is not cancelled. | Look up the run identifier in the error message before you start another invocation. |
Runtime is shutting down |
A request reached a session that is closing after being idle. | Retry. A new session starts. |
FAQ#
Can DuckDB write to the Groundzero Lakehouse? No. DuckDB reads the lakehouse only. Write lakehouse tables with the Spark runtime, or write results to S3 or a database from DuckDB.
How do I choose between DuckDB and Spark? Use DuckDB when the data you process fits one machine and you want fast joins and a quick start. Use Spark for distributed processing and lakehouse writes. See Choose the DuckDB runtime.
Why did my dataset show old data? Dataset output is cached by the exact code text. Wait for the cache to expire or change the code. See Return output and previews.
How many rows can a dataset return? Up to 100,000. Aggregate or filter in SQL before returning.
Does state carry over between runs? Do not rely on it. A run may start in a new session.
Can I use os.environ and read credentials?
No. In jobs and datasets, secret values in os.environ read as ****. Use
connections.
Which time zone does the runtime use?
Time zone data is included, so named zones such as UTC and Europe/Berlin work
with PyArrow and pandas.
How do I add a Python package?
Choose an ML variant, ask an administrator for a custom runtime built from a
requirements.txt, or pip install in a notebook. See Use extra packages.
How do I see why a job failed? Open the job's log view. The error shows the exception type, message and the line of your code that raised it. Printed output appears in the same view.
Are the method names the same as in the Spark runtime? Many connector methods have matching names, but the session object, return types and write support differ. Check the reference for each runtime.
Where do query results go when I use returnFormat="pandas"?
Into memory as a DataFrame. For large results keep the relation lazy.