You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by "thomasg19930417 (via GitHub)" <gi...@apache.org> on 2023/03/14 09:37:56 UTC
[GitHub] [kyuubi] thomasg19930417 opened a new issue, #4508: [Bug] [Kyuubi-hive-beeline] Using Beeline with -i run sql faild
thomasg19930417 opened a new issue, #4508:
URL: https://github.com/apache/kyuubi/issues/4508
### 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/kyuubi/issues?q=is%3Aissue) and found no similar issues.
### Describe the bug
when using beeline with -i , Enter will trigger the execution of sql.
I added some logs to the code and found that the content read in the handleMultiLineCmd is empty at this time. According to the context code, I suspect that the consoleReader refers to FileInputStream when the - i parameter is used. Therefore, I added the following changes here and found that it can solve the current problem
code:
if(beeLine.getOpts().getInitFiles() != null) {
beeLine.setConsoleReader(new
ConsoleReader(beeLine.getInputStream(), beeLine.getErrorStream()));
}

### Affects Version(s)
1.7.0 以及以下版本
### Kyuubi Server Log Output
_No response_
### Kyuubi Engine Log Output
_No response_
### Kyuubi Server Configurations
_No response_
### Kyuubi Engine Configurations
_No response_
### Additional context
_No response_
### Are you willing to submit PR?
- [X] Yes. I would be willing to submit a PR with guidance from the Kyuubi community to fix.
- [ ] No. I cannot submit a PR at this time.
--
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: notifications-unsubscribe@kyuubi.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org
[GitHub] [kyuubi] pan3793 closed issue #4508: [Bug] [Kyuubi-hive-beeline] Using Beeline with -i run sql faild
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 closed issue #4508: [Bug] [Kyuubi-hive-beeline] Using Beeline with -i run sql faild
URL: https://github.com/apache/kyuubi/issues/4508
--
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: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org
[GitHub] [kyuubi] thomasg19930417 commented on issue #4508: [Bug] [Kyuubi-hive-beeline] Using Beeline with -i run sql faild
Posted by "thomasg19930417 (via GitHub)" <gi...@apache.org>.
thomasg19930417 commented on issue #4508:
URL: https://github.com/apache/kyuubi/issues/4508#issuecomment-1467756391
> @thomasg19930417 in this case, better to send PR directly, so that reviewers can see your changes and the CI will check if your change breaks something.
Ok, I will submit PR later
--
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: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org
[GitHub] [kyuubi] pan3793 commented on issue #4508: [Bug] [Kyuubi-hive-beeline] Using Beeline with -i run sql faild
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on issue #4508:
URL: https://github.com/apache/kyuubi/issues/4508#issuecomment-1467747409
@thomasg19930417 in this case, better to send PR directly, so that reviewers can see your changes and the CI will check if your change breaks something.
--
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: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org
[GitHub] [kyuubi] thomasg19930417 commented on issue #4508: [Bug] [Kyuubi-hive-beeline] Using Beeline with -i run sql faild
Posted by "thomasg19930417 (via GitHub)" <gi...@apache.org>.
thomasg19930417 commented on issue #4508:
URL: https://github.com/apache/kyuubi/issues/4508#issuecomment-1467841420
#4510
--
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: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org