-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #508 from dyvenia/dev
Release 0.4.7 PR
- Loading branch information
Showing
27 changed files
with
1,852 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -157,4 +157,3 @@ sap_netweaver_rfc | |
|
||
# Databricks-connect | ||
.databricks-connect | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,5 @@ paramiko==2.11.0 | |
sshtunnel==0.4.0 | ||
databricks-connect==10.4.0b0 | ||
O365==2.0.18.1 | ||
aiohttp==3.8.1 | ||
aiolimiter==1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import pytest | ||
from viadot.flows.sql_server_transform import SQLServerTransform | ||
from viadot.tasks.sql_server import SQLServerQuery | ||
|
||
SCHEMA = "sandbox" | ||
TABLE = "test_sql_server" | ||
|
||
|
||
def test_sql_server_transform(): | ||
query_task = SQLServerQuery("AZURE_SQL") | ||
query_task.run(f"DROP TABLE IF EXISTS {SCHEMA}.{TABLE}") | ||
flow = SQLServerTransform( | ||
name="test flow sql transform", | ||
config_key="AZURE_SQL", | ||
query=f"CREATE TABLE {SCHEMA}.{TABLE} (Id INT, Name VARCHAR (10))", | ||
) | ||
result = flow.run() | ||
assert result.is_successful() | ||
query_task.run(f"DROP TABLE {SCHEMA}.{TABLE}") | ||
|
||
|
||
def test_sql_server_transfor_fail(): | ||
flow = SQLServerTransform( | ||
name="test flow sql transform", | ||
config_key="AZURE_SQL", | ||
query=f"CREATE TABLE {SCHEMA}.{TABLE}", | ||
) | ||
|
||
result = flow.run() | ||
assert result.is_failed() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.