mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
[ZEPPELIN-2538] small improvement
This commit is contained in:
parent
e770d261cd
commit
0991c6ab91
1 changed files with 6 additions and 6 deletions
|
|
@ -289,13 +289,13 @@ public class SqlCompleter {
|
|||
*/
|
||||
public void createOrUpdateFromConnection(Connection connection, String schemaFiltersString,
|
||||
String buffer, int cursor) {
|
||||
if (schemaFiltersString == null) {
|
||||
schemaFiltersString = StringUtils.EMPTY;
|
||||
}
|
||||
List<String> schemaFilters = Arrays.asList(schemaFiltersString.split(","));
|
||||
CursorArgument cursorArgument = parseCursorArgument(buffer, cursor);
|
||||
|
||||
try (Connection c = connection) {
|
||||
if (schemaFiltersString == null) {
|
||||
schemaFiltersString = StringUtils.EMPTY;
|
||||
}
|
||||
List<String> schemaFilters = Arrays.asList(schemaFiltersString.split(","));
|
||||
CursorArgument cursorArgument = parseCursorArgument(buffer, cursor);
|
||||
|
||||
Set<String> tables = new HashSet<>();
|
||||
Set<String> columns = new HashSet<>();
|
||||
Set<String> schemas = new HashSet<>();
|
||||
|
|
|
|||
Loading…
Reference in a new issue