rbhive icon indicating copy to clipboard operation
rbhive copied to clipboard

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

Open barata opened this issue 10 years ago • 1 comments

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.

barata avatar Jun 18 '15 16:06 barata

Is this implemented ?

jyothu avatar Jun 28 '17 07:06 jyothu