Skip to content

Limitation to send commands (create/drop table, select...) for different databases #35

@barata

Description

@barata

I was looking into your code and found out that you don't support to execute commands in different databases without a "USE [dbname]". If we don't set one, Hive will assume 'default' database. It is kind of ugly to require users to send a 'use [dbname]' every time s/he open a connection to HiveServer in a different database. It would be nice to have something like:

RBHive.tcli_connect('hive.server.address', 10_000, 'dbname') do |connection|
  connection.fetch('SHOW TABLES')
end

Please let me know if you want me to make a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions