Skip to content

Commit

Permalink
Fix snowflake module import (#61)
Browse files Browse the repository at this point in the history
Fixed some old import references in the snowflake reader and writer modules.
  • Loading branch information
dannymeijer authored Sep 4, 2024
1 parent c0e3053 commit d993ca9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/koheesio/spark/readers/snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
More detailed class descriptions can be found in the class docstrings.
"""

from koheesio.steps.integrations.snowflake import DbTableQuery, Query, SnowflakeReader
from koheesio.spark.snowflake import DbTableQuery, Query, SnowflakeReader

__all__ = ["SnowflakeReader", "Query", "DbTableQuery"]
2 changes: 1 addition & 1 deletion src/koheesio/spark/writers/snowflake.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""This module contains the SnowflakeWriter class, which is used to write data to Snowflake."""

from koheesio.steps.integrations.snowflake import SnowflakeWriter
from koheesio.spark.snowflake import SnowflakeWriter

__all__ = ["SnowflakeWriter"]
5 changes: 5 additions & 0 deletions tests/spark/integrations/snowflake/test_snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
"warehouse": "warehouse",
}

def test_snowflake_module_import():
# test that the pass-through imports in the koheesio.spark snowflake modules are working
from koheesio.spark.writers import snowflake as snowflake_readers
from koheesio.spark.readers import snowflake as snowflake_writers


class TestSnowflakeReader:
reader_options = {"dbtable": "table", **COMMON_OPTIONS}
Expand Down

0 comments on commit d993ca9

Please sign in to comment.