Sha256: 06b66439e728bb924575a29e18e5c67d37f7e211404d32c3fc819a75f2c7f728
Contents?: true
Size: 776 Bytes
Versions: 1
Compression:
Stored size: 776 Bytes
Contents
require File.join File.dirname(__FILE__), 'helper' require File.join File.dirname(__FILE__), 'base' class HiveTest < Test::Unit::TestCase include Base def test_create_table Sip::Hive.run_hsql_create_table @sipper, @db, @tableconf, :overwrite #`#{ENV['HIVE_HOME']}/bin/hive -S -e "select # Sip::Hive.run @sipper, "create table #{@tableconf['hive_table_name']} (id integer, name string)" # Sip::Hive.run @sipper, " end def test_run assert_raise Sip::HiveQueryException do hh = ENV['HIVE_HOME'] ENV['HIVE_HOME'] = "/tmp/asdfasdfasdf" Sip::Hive.run @sipper, "show tables" ENV['HIVE_HOME'] = hh end assert_raises Sip::HiveQueryException do Sip::Hive.run @sipper, "this is not a real query" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sip-0.0.0 | test/hive_test.rb |