zihaozeng0021 opened a new issue, #2262:
URL: https://github.com/apache/age/issues/2262
### Configuration
AGE Version: `apache/age:latest` (pulled 2025-12-07)
Operating System: WSL2 – Ubuntu 24.04.1 LTS
Installation Method: Docker
---
### Steps to reproduce
1. Start AGE via Docker
```
docker run \
--name age \
-p 5455:5432 \
-e POSTGRES_USER=postgresUser \
-e POSTGRES_PASSWORD=postgresPW \
-e POSTGRES_DB=postgresDB \
-d \
apache/age:latest
```
2. Connect with psql
```
PGPASSWORD='postgresPW' psql -h localhost -p 5455 -U postgresUser -d
postgresDB
```
3. Run the following query
```
CREATE EXTENSION IF NOT EXISTS age;
LOAD 'age';
SET search_path = ag_catalog, "$user", public;
SELECT create_graph('test_graph');
SELECT *
FROM cypher('test_graph', $$
WITH 1 AS x
WITH count(x) AS skipAmount
UNWIND [1, 2] AS a
RETURN a
SKIP skipAmount
$$) AS (a agtype);
```
---
### Expected behaviour
The query runs sucessfully
### Actual behaviour
The query failed with the message:
```
ERROR: argument of SKIP must not contain variables
LINE 7: SKIP skipAmount
```
Key points:
1. There is a contradiction between this result and the documentation.
2. The
[documentation](https://age.apache.org/age-manual/master/clauses/skip.html)
states `SKIP` accepts any expression that evaluates to a positive integer.
3. Expressions are combinations of variables and numbers, and the
`skipAmount` is a variable that is always 1 (a positive integer). However, the
results state that the argument of `SKIP` must not contain variables.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]