Skip to content

Commit

Permalink
Update test_spark_hive_dataset.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SajidAlamQB committed Aug 16, 2023
1 parent 3b85fe1 commit 5af68bb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions kedro-datasets/tests/spark/test_spark_hive_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,9 @@ def test_read_from_non_existent_table(self):
)
with pytest.raises(
DataSetError,
match=r"Failed while loading data from data set "
r"SparkHiveDataSet\(database=default_1, format=hive, "
r"table=table_doesnt_exist, table_pk=\[\], write_mode=append\)\.\n"
r"Table or view not found: default_1.table_doesnt_exist;\n"
r"'UnresolvedRelation \[default_1, "
r"table_doesnt_exist\], \[\], false\n",
match=r"Failed while loading data from data set SparkHiveDataSet"
r"|table_doesnt_exist"
r"|UnresolvedRelation",
):
dataset.load()

Expand Down

0 comments on commit 5af68bb

Please sign in to comment.