iodone opened a new issue #1920: URL: https://github.com/apache/incubator-kyuubi/issues/1920
### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) ### Search before asking - [X] I have searched in the [issues](https://github.com/apache/incubator-kyuubi/issues?q=is%3Aissue) and found no similar issues. ### Describe the feature When using planOnly mode to parse some SQL statements in kyuubi, there are usually multiple SQL statements containing `USE Database` that are context sensitive. If the `USE` statement is also just plan parsed and not really executed, the next SQL references a table name under the current database, it will throw a Table Not Found Exception when analyzing and optimizing the plan. We can skip the Plan parsing of `UseStatement` and actually execute it like `SetCommand` ### Motivation _No response_ ### Describe the solution _No response_ ### Additional context _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! -- 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]
