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
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:
Please let me know if you want me to make a PR.