Skip to content

Conversation

@randerzander
Copy link
Contributor

What is this PR for?

A few sentences describing the overall goals of the pull request's commits.
First time? Check out the contributing guide - https://zeppelin.apache.org/contribution/contributions.html

Prevents JDBC interpreter from throwing a stacktrace when the database has a schema with no name (null).

What type of PR is it?

[Bug Fix]

Todos

  • - Task

What is the Jira issue?

https://issues.apache.org/jira/browse/ZEPPELIN-2241

How should this be tested?

Outline the steps to test the PR here.

Use JDBC interpreter to connect to any database that has a schema without a name. Apache Phoenix in particular has such a schema by default.

Screenshots (if appropriate)

Questions:

  • Does the licenses files need update?

No

  • Is there breaking changes for older versions?

No

  • Does this needs documentation?

No

@1ambda
Copy link
Member

1ambda commented Mar 10, 2017

Hi @randerzander. Thanks for contribution.

@randerzander
Copy link
Contributor Author

Thanks for the link, @1ambda . Do I need to close and re-open the PR to get Travis to run the test now?

@randerzander
Copy link
Contributor Author

@1ambda I enabled Travis for my repo. All builds passed except this one which unrelated errors about Pig/MapReduce.

@1ambda
Copy link
Member

1ambda commented Mar 11, 2017

@randerzander Hi, it's flaky test. You can restart the failed job again using the restart button.
If you close / open this PR after all jobs pass, you can see this

  • It's not mandatory to pass all tests to be reviewed. But some reviewers might select PRs first which pass all tests.

image

@1ambda
Copy link
Member

1ambda commented Mar 11, 2017

I will test and give you feed back soon!

try {
while (schemas.next()) {
String schemaName = schemas.getString("TABLE_SCHEM");
//Some databases will have schemas with no name
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MINOR: We can remove this comment, it's duplicated with the code line below.

@1ambda
Copy link
Member

1ambda commented Mar 13, 2017

LGTM except one minor thing.

@Leemoonsoo
Copy link
Member

LGTM and merge to master and branch-0.7, if no further comments.

@asfgit asfgit closed this in 623b4ac Mar 15, 2017
asfgit pushed a commit that referenced this pull request Mar 15, 2017
…at has a schema with "null" name

A few sentences describing the overall goals of the pull request's commits.
First time? Check out the contributing guide - https://zeppelin.apache.org/contribution/contributions.html

Prevents JDBC interpreter from throwing a stacktrace when the database has a schema with no name (null).

[Bug Fix]

* [ ] - Task

* Open an issue on Jira https://issues.apache.org/jira/browse/ZEPPELIN/
* Put link here, and add [ZEPPELIN-*Jira number*] in PR title, eg. [ZEPPELIN-533]

https://issues.apache.org/jira/browse/ZEPPELIN-2241

Outline the steps to test the PR here.

Use JDBC interpreter to connect to any database that has a schema without a name. Apache Phoenix in particular has such a schema by default.

* Does the licenses files need update?

No

* Is there breaking changes for older versions?

No

* Does this needs documentation?

No

Author: Randy Gelhausen <rgelhau@gmail.com>

Closes #2117 from randerzander/master and squashes the following commits:

49d33f9 [Randy Gelhausen] Removing comment per feedback
79d8a23 [Randy Gelhausen] Added comment to the change
0101296 [Randy Gelhausen] ZEPPELIN-2241: JDBC interpreter throws npe on connecting to any db that has a schema with "null" name

(cherry picked from commit 623b4ac)
Signed-off-by: Lee moon soo <moon@apache.org>
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.

4 participants