AsTreeCTE复用报错
Open
- Dominant language
- Java
- Stars
- 777
- Forks
- 78
- PR merge metrics
- No merged PRs in 30d
Description
asTreeCTE表达式复用时,比如`cloneQueryable`和`union`,会导致创建两次with语句从而报错
```
var sql = asTreeCTE();
sql.union(sql).toList()
```
只`union`可能不报错但是`toList`会报错
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the implementation of asTreeCTE and trace how cloneQueryable, union, and toList build and render CTEs. Reproduce the issue with the provided snippet, then compare the generated SQL or query state when the CTE expression is reused. Done means reuse no longer creates duplicate WITH clauses and both union and toList execute successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100