Skip to content

ZEPPELIN-3379 Refactoring of JDBC autocomplete.#2970

Closed
mebelousov wants to merge 0 commit into
apache:masterfrom
Tinkoff:ZEPPELIN-3379
Closed

ZEPPELIN-3379 Refactoring of JDBC autocomplete.#2970
mebelousov wants to merge 0 commit into
apache:masterfrom
Tinkoff:ZEPPELIN-3379

Conversation

@mebelousov
Copy link
Copy Markdown
Contributor

What is this PR for?

Current implementation of autocomplete allows only completion in schema.table.column scenario. Such scenario exclude tables for default schema.
The PR fixes the scenario with tables in default schema and alias processing.
Also I want to add feature to complete columns for used tables in statement from blank cursor.

The autocomplete was tested for Greenplum 4.3 (PostgreSQL), Oracle 11g, MySQL (Hive Metastore) and Hive.

What type of PR is it?

Improvement

What is the Jira issue?

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

How should this be tested?

  • Manually
  • Tests pass

Screenshots (if appropriate)

mysql

Questions:

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

}

@Override
public InterpreterResult interpret(String originalCmd, InterpreterContext contextInterpreter) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi @mebelousov the change proposed in these lines removes the capability described in ZEPPELIN-3377 (Passing Z variables to JDBC interpreter) and the corresponding PR-2903.

Is it necessary to remove ZEPPELIN-3377 capability to implement this PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@sanjaydasgupta
I wasn't careful with git.
Reopen PR in #2972

Thank you!

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