-
Notifications
You must be signed in to change notification settings - Fork 2.8k
ZEPPELIN-2241: JDBC interpreter throws npe on connecting to any db that has a schema with "null" name #2117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…at has a schema with "null" name
|
Hi @randerzander. Thanks for contribution.
|
|
Thanks for the link, @1ambda . Do I need to close and re-open the PR to get Travis to run the test now? |
|
@randerzander Hi, it's flaky test. You can restart the failed job again using the
|
|
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 |
There was a problem hiding this comment.
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.
|
LGTM except one minor thing. |
|
LGTM and merge to master and branch-0.7, if no further comments. |
…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>

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
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:
No
No
No