lgbo-ustc opened a new issue, #9581:
URL: https://github.com/apache/incubator-gluten/issues/9581
### Backend
CH (ClickHouse)
### Bug description
[Expected behavior] and [actual behavior].
```
Error in query: IN/EXISTS predicate sub-queries can only be used in
Filter/Join and a few commands: Project [if (((cast(day#453 as date) =
date_sub(cast(2025-02-22 as date), 1)) AND uid#422L IN (list#23 [])))
named_struct(f0, uid#422L, f1, null, f2, true, f3, null) else null AS
clause_0#572, if ((day#453 = 2025-02-22)) named_struct(f0, uid#422L, f1,
uid#422L, f2, null, f3, true) else null AS clause_1#573]
: +- Project [uid#580L]
: +- Filter (cast(fday#581 as date) = date_sub(cast(2025-02-22 as date),
1))
: +- SubqueryAlias spark_catalog.t
: +- Relation t1[uid#580L,fday#581] orc
+- Filter (((cast(day#453 as date) = date_sub(cast(2025-02-22 as date), 1))
AND uid#422L IN (list#23 [])) OR (day#453 = 2025-02-22))
: +- Project [uid#506L]
: +- Filter (cast(fday#507 as date) = date_sub(cast(2025-02-22 as
date), 1))
: +- SubqueryAlias spark_catalog.t2
: +- Relation t2[uid#506L,fday#507] orc
+- SubqueryAlias spark_catalog.t
+- Relation t1
```
```
SELECT UID
FROM t1
WHERE DAY = date_sub('${day1}', 1)
AND UID IN
(SELECT UID
FROM t2
WHERE fday = date_sub('${day1}', 1))
GROUP BY UID)a
LEFT JOIN
(SELECT UID
FROM t1
WHERE DAY = '${day1}'
GROUP BY UID)b ON a.uid = b.uid
```
### Gluten version
_No response_
### Spark version
None
### Spark configurations
_No response_
### System information
_No response_
### Relevant logs
```bash
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]