|
3 | 3 | from dataiku.customrecipe import get_input_names_for_role, get_recipe_config, get_output_names_for_role |
4 | 4 | import pandas as pd |
5 | 5 | from safe_logger import SafeLogger |
6 | | -from dku_utils import get_dku_key_values, get_endpoint_parameters, get_secure_credentials |
| 6 | +from dku_utils import get_dku_key_values, get_endpoint_parameters, get_secure_credentials, get_user_secrets |
7 | 7 | from rest_api_recipe_session import RestApiRecipeSession |
8 | 8 | from dku_constants import DKUConstants |
9 | 9 |
|
@@ -45,12 +45,14 @@ def get_partitioning_keys(id_list, dku_flow_variables): |
45 | 45 | raise ValueError("There is no parameter column selected.") |
46 | 46 | parameter_renamings = get_dku_key_values(config.get("parameter_renamings", {})) |
47 | 47 | custom_key_values = get_dku_key_values(config.get("custom_key_values", {})) |
| 48 | +user_secrets = get_user_secrets(config) |
| 49 | +custom_key_values.update(user_secrets) |
48 | 50 | display_metadata = config.get("display_metadata", False) |
49 | 51 | maximum_number_rows = config.get("maximum_number_rows", -1) |
50 | 52 | input_parameters_dataset = dataiku.Dataset(input_A_names[0]) |
51 | 53 | partitioning_keys = get_partitioning_keys(input_parameters_dataset, dku_flow_variables) |
52 | 54 | custom_key_values.update(partitioning_keys) |
53 | | -input_parameters_dataframe = input_parameters_dataset.get_dataframe() |
| 55 | +input_parameters_dataframe = input_parameters_dataset.get_dataframe(infer_with_pandas=False) |
54 | 56 |
|
55 | 57 | recipe_session = RestApiRecipeSession( |
56 | 58 | custom_key_values, |
|
0 commit comments