Skip to content

Commit

Permalink
🎨 Changed env default value 'PROD' to 'DEV'
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-wojcik committed Mar 14, 2024
1 parent 505196a commit 2895eb8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions viadot/flows/sap_rfc_to_adls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(
rfc_unique_id: List[str] = None,
sap_credentials: dict = None,
sap_credentials_key: str = "SAP",
env: str = "PROD",
env: str = "DEV",
output_file_extension: str = ".parquet",
local_file_path: str = None,
file_sep: str = "\t",
Expand Down Expand Up @@ -70,7 +70,7 @@ def __init__(
)
sap_credentials (dict, optional): The credentials to use to authenticate with SAP. By default, they're taken from the local viadot config.
sap_credentials_key (str, optional): Local config or Azure KV secret. Defaults to "SAP".
env (str, optional): SAP environment. Defaults to "PROD".
env (str, optional): SAP environment. Defaults to "DEV".
output_file_extension (str, optional): Output file extension - to allow selection of .csv for data which is not easy to handle with parquet. Defaults to ".parquet".
local_file_path (str, optional): Local destination path. Defaults to None.
file_sep(str, optional): The separator to use in the CSV. Defaults to "\t".
Expand Down
8 changes: 4 additions & 4 deletions viadot/tasks/sap_rfc.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(
rfc_total_col_width_character_limit: int = 400,
sap_credentials: dict = None,
sap_credentials_key: str = "SAP",
env: str = "PROD",
env: str = "DEV",
max_retries: int = 3,
retry_delay: timedelta = timedelta(seconds=10),
timeout: int = 3600,
Expand Down Expand Up @@ -60,7 +60,7 @@ def __init__(
of characters, so we add a safety margin. Defaults to 400.
sap_credentials (dict, optional): The credentials to use to authenticate with SAP. By default, they're taken from the local viadot config.
sap_credentials_key (str, optional): Local config or Azure KV secret. Defaults to "SAP".
env (str, optional): SAP environment. Defaults to "PROD".
env (str, optional): SAP environment. Defaults to "DEV".
By default, they're taken from the local viadot config.
"""
self.query = query
Expand Down Expand Up @@ -96,7 +96,7 @@ def run(
replacement: str = "-",
sap_credentials: dict = None,
sap_credentials_key: str = "SAP",
env: str = "PROD",
env: str = "DEV",
func: str = None,
rfc_total_col_width_character_limit: int = None,
rfc_unique_id: List[str] = None,
Expand All @@ -112,7 +112,7 @@ def run(
inside the string to avoid flow breakdowns. Defaults to "-".
sap_credentials (dict, optional): The credentials to use to authenticate with SAP. By default, they're taken from the local viadot config.
sap_credentials_key (str, optional): Local config or Azure KV secret. Defaults to "SAP".
env (str, optional): SAP environment. Defaults to "PROD".
env (str, optional): SAP environment. Defaults to "DEV".
func (str, optional): SAP RFC function to use. Defaults to None.
rfc_total_col_width_character_limit (int, optional): Number of characters by which query will be split in chunks
in case of too many columns for RFC function. According to SAP documentation, the limit is
Expand Down

0 comments on commit 2895eb8

Please sign in to comment.