You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/10/18 08:56:00 UTC
[jira] [Commented] (HIVE-17830) dbnotification fails to work with
rdbms other than postgres
[ https://issues.apache.org/jira/browse/HIVE-17830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16209004#comment-16209004 ]
ASF GitHub Bot commented on HIVE-17830:
---------------------------------------
GitHub user anishek opened a pull request:
https://github.com/apache/hive/pull/263
HIVE-17830: dbnotification fails to work with rdbms other than postgres
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/anishek/hive HIVE-17830
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/hive/pull/263.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #263
----
commit 03e1e2d58f3884ef88949e38976058794899c895
Author: Anishek Agarwal <an...@gmail.com>
Date: 2017-10-18T08:53:47Z
HIVE-17830: dbnotification fails to work with rdbms other than postgres
----
> dbnotification fails to work with rdbms other than postgres
> -----------------------------------------------------------
>
> Key: HIVE-17830
> URL: https://issues.apache.org/jira/browse/HIVE-17830
> Project: Hive
> Issue Type: Bug
> Components: HiveServer2
> Reporter: anishek
> Assignee: anishek
> Priority: Critical
> Fix For: 3.0.0
>
> Attachments: HIVE-17830.0.patch
>
>
> as part of HIVE-17721 we had changed the direct sql to acquire the lock for postgres as
> {code}
> select "NEXT_EVENT_ID" from "NOTIFICATION_SEQUENCE" for update;
> {code}
> however this breaks other databases and we have to use different sql statements for different databases
> for postgres use
> {code}
> select "NEXT_EVENT_ID" from "NOTIFICATION_SEQUENCE" for update;
> {code}
> for SQLServer
> {code}
> select "NEXT_EVENT_ID" from "NOTIFICATION_SEQUENCE"with (updlock);
> {code}
> for other databases
> {code}
> select NEXT_EVENT_ID from NOTIFICATION_SEQUENCE for update;
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)