Skip to content

Conversation

@prabhjyotsingh
Copy link
Contributor

@prabhjyotsingh prabhjyotsingh commented Sep 20, 2016

What is this PR for?

While creating connection DriverManager.getConnection(url, properties); for JDBC interpreter, phoenix driver is modifying the properties that is passed as parameter, which in modifies propertiesMap.

This all is resulting in, not able to execute any other paragraph with phoenix interpreter.

This only happens if JDBC URI is "jdbc:phoenix:thin:url"

What type of PR is it?

[Bug Fix]

Todos

  • - Pass a copy of properties to DriverManager.getConnection(url, properties)

What is the Jira issue?

How should this be tested?

Use the example setting below
https://issues.apache.org/jira/browse/ZEPPELIN-1459?focusedCommentId=15505750&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15505750

Screenshots (if appropriate)

Questions:

  • Does the licenses files need update? n/a
  • Is there breaking changes for older versions? n/a
  • Does this needs documentation? n/a

@randerzander
Copy link
Contributor

I tested the PR and it works as expected. Thanks @prabhjyotsingh!

@prabhjyotsingh
Copy link
Contributor Author

prabhjyotsingh commented Sep 21, 2016

Thank you @randerzander for quick verification, will merge this soon.

@asfgit asfgit closed this in 6f9012b Sep 22, 2016
pedrozatta pushed a commit to pedrozatta/zeppelin that referenced this pull request Oct 27, 2016
### What is this PR for?
While creating connection `DriverManager.getConnection(url, properties);` for JDBC interpreter, phoenix driver is modifying the properties that is passed as parameter, which in modifies propertiesMap.

This all is resulting in, not able to execute any other paragraph with phoenix interpreter.

This only happens if JDBC URI is "jdbc:phoenix:thin:url"

### What type of PR is it?
[Bug Fix]

### Todos
* [x] - Pass a copy of `properties` to `DriverManager.getConnection(url, properties)`

### What is the Jira issue?
* [ZEPPELIN-1459](https://issues.apache.org/jira/browse/ZEPPELIN-1459)

### How should this be tested?
Use the example setting below
https://issues.apache.org/jira/browse/ZEPPELIN-1459?focusedCommentId=15505750&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15505750

### Screenshots (if appropriate)

### Questions:
* Does the licenses files need update? n/a
* Is there breaking changes for older versions? n/a
* Does this needs documentation? n/a

Author: Prabhjyot Singh <[email protected]>

Closes apache#1442 from prabhjyotsingh/ZEPPELIN-1459 and squashes the following commits:

906fe34 [Prabhjyot Singh] ZEPPELIN-1459: Zeppelin JDBC URL properties mangled
@prabhjyotsingh prabhjyotsingh deleted the ZEPPELIN-1459 branch February 25, 2018 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants