AngersZhuuuu opened a new pull request, #5540:
URL: https://github.com/apache/kyuubi/pull/5540
### _Why are the changes needed?_
To close #5503
For lateral sql
```
test("xxx") {
val db1 = defaultDb
val table1 = "table1"
val table2 = "table2"
val view1 = "view1"
withCleanTmpResources(
Seq((s"$db1.$table1", "table"), (s"$db1.$table2", "table"),
(s"$db1.$view1", "view"))) {
doAs(admin, sql(s"CREATE TABLE IF NOT EXISTS $db1.$table1 (id int,
scope int)"))
doAs(admin, sql(s"CREATE TABLE IF NOT EXISTS $db1.$table2 (id int, age
int)"))
doAs(admin, sql(
s"""
|SELECT t1.id, age
|FROM $db1.$table1 t1,
|LATERAL (
| SELECT *
| FROM $db1.$table2 t2
| WHERE t1.id = t2.id
|)
|""".stripMargin).explain(true))
}
}
```
It was caused by https://github.com/apache/kyuubi/pull/4529

But after we fix #5417 and #5415, we didn't need this change. We should
remove it.
### _How was this patch tested?_
- [x] Add some test cases that check the changes thoroughly including
negative and positive cases if possible
- [ ] Add screenshots for manual tests if appropriate
- [ ] [Run
test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests)
locally before make a pull request
### _Was this patch authored or co-authored using generative AI tooling?_
No
--
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]