You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by "iamcaoxudong (via GitHub)" <gi...@apache.org> on 2023/12/28 06:59:40 UTC
[I] [Bug] [SQL Task]Hive jdbc implementation does not support multi SQL sentences within a single PreparedStatement. [dolphinscheduler]
iamcaoxudong opened a new issue, #15373:
URL: https://github.com/apache/dolphinscheduler/issues/15373
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
Hive jdbc implementation does not support multi SQL sentences within a single PreparedStatement. So if a Hive SQL task contains multiple SQL statement, it will just lead to a syntax error onHive Server2 side.
I also verified the multi-sql-statement with a bare hive jdbc demo, with maven dependency org.apache.hive:hive-jdbc-3.1.3. It produces the same syntax error. So I concluded that the Hive JDBC implementation has not the capability to support multi SQL sentences in one PreparedStatement.
### What you expected to happen
DbType#isSupportMultipleStatement should return false when db type is HIVE.
### How to reproduce
1. Create a simple Hive SQL Task. for example:

2. Run this task, then we'll get a syntax error from HiveServer2 side:

### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
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: commits-unsubscribe@dolphinscheduler.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [SQL Task]Hive jdbc implementation does not support multi SQL sentences within a single PreparedStatement. [dolphinscheduler]
Posted by "iamcaoxudong (via GitHub)" <gi...@apache.org>.
iamcaoxudong commented on issue #15373:
URL: https://github.com/apache/dolphinscheduler/issues/15373#issuecomment-1874909907
I have noticed that in latest dev branch, #15367 has refactored the SQL split function by directly using Alibaba Druid. Therefore DbType#isSupportMultipleStatement has become a no-usages API, should we remote this function now?
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [SQL Task]Hive jdbc implementation does not support multi SQL sentences within a single PreparedStatement. [dolphinscheduler]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #15373:
URL: https://github.com/apache/dolphinscheduler/issues/15373#issuecomment-1937367501
This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [SQL Task]Hive jdbc implementation does not support multi SQL sentences within a single PreparedStatement. [dolphinscheduler]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #15373: [Bug] [SQL Task]Hive jdbc implementation does not support multi SQL sentences within a single PreparedStatement.
URL: https://github.com/apache/dolphinscheduler/issues/15373
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [SQL Task]Hive jdbc implementation does not support multi SQL sentences within a single PreparedStatement. [dolphinscheduler]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #15373: [Bug] [SQL Task]Hive jdbc implementation does not support multi SQL sentences within a single PreparedStatement.
URL: https://github.com/apache/dolphinscheduler/issues/15373
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [SQL Task]Hive jdbc implementation does not support multi SQL sentences within a single PreparedStatement. [dolphinscheduler]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #15373:
URL: https://github.com/apache/dolphinscheduler/issues/15373#issuecomment-2052721756
This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [SQL Task]Hive jdbc implementation does not support multi SQL sentences within a single PreparedStatement. [dolphinscheduler]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #15373:
URL: https://github.com/apache/dolphinscheduler/issues/15373#issuecomment-1924933124
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [SQL Task]Hive jdbc implementation does not support multi SQL sentences within a single PreparedStatement. [dolphinscheduler]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #15373:
URL: https://github.com/apache/dolphinscheduler/issues/15373#issuecomment-2035845719
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [SQL Task]Hive jdbc implementation does not support multi SQL sentences within a single PreparedStatement. [dolphinscheduler]
Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo commented on issue #15373:
URL: https://github.com/apache/dolphinscheduler/issues/15373#issuecomment-1872935259
good job
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org