Skip to content

Commit

Permalink
Fix the test to create or replace
Browse files Browse the repository at this point in the history
  • Loading branch information
Fokko committed Nov 18, 2020
1 parent 880db89 commit b5b6936
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/test_macros.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_macros_create_table_as_file_format(self):

self.config['file_format'] = 'delta'
sql = self.__run_macro(template, 'spark__create_table_as', False, 'my_table', 'select 1').strip()
self.assertEqual(sql, "create table my_table using delta as select 1")
self.assertEqual(sql, "create or replace table my_table using delta as select 1")

def test_macros_create_table_as_partition(self):
template = self.__get_template('adapters.sql')
Expand Down Expand Up @@ -103,5 +103,5 @@ def test_macros_create_table_as_all(self):
sql = self.__run_macro(template, 'spark__create_table_as', False, 'my_table', 'select 1').strip()
self.assertEqual(
sql,
"create table my_table using delta partitioned by (partition_1,partition_2) clustered by (cluster_1,cluster_2) into 1 buckets location '/mnt/root/my_table' comment 'Description Test' as select 1"
"create or replace table my_table using delta partitioned by (partition_1,partition_2) clustered by (cluster_1,cluster_2) into 1 buckets location '/mnt/root/my_table' comment 'Description Test' as select 1"
)

0 comments on commit b5b6936

Please sign in to comment.