spec/impala_test.rb in sequel-impala-1.0.0 vs spec/impala_test.rb in sequel-impala-1.0.1

- old
+ new

@@ -188,12 +188,17 @@ @ds = @db[:items] @ds.insert(1) @ds.to_parquet(:items2) @db[:items2].all.must_equal [{:number=>1}] end -end +end unless DB.adapter_scheme == :rbhive describe "Impala create/drop schemas" do + before do + DB.drop_table?(:s1__items) + DB.drop_schema(:s1, :if_exists=>true) + end + it "should use correct SQL" do DB.send(:create_schema_sql, :s1, {}).must_equal "CREATE SCHEMA `s1`" DB.send(:create_schema_sql, :s1, :if_not_exists=>true).must_equal "CREATE SCHEMA IF NOT EXISTS `s1`" DB.send(:create_schema_sql, :s1, :location=>'/a/b').must_equal "CREATE SCHEMA `s1` LOCATION '/a/b'"