omnata-plugin-runtime 0.5.7a149__tar.gz → 0.5.7a150__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {omnata_plugin_runtime-0.5.7a149 → omnata_plugin_runtime-0.5.7a150}/PKG-INFO +1 -1
- {omnata_plugin_runtime-0.5.7a149 → omnata_plugin_runtime-0.5.7a150}/pyproject.toml +1 -1
- {omnata_plugin_runtime-0.5.7a149 → omnata_plugin_runtime-0.5.7a150}/src/omnata_plugin_runtime/omnata_plugin.py +5 -5
- {omnata_plugin_runtime-0.5.7a149 → omnata_plugin_runtime-0.5.7a150}/LICENSE +0 -0
- {omnata_plugin_runtime-0.5.7a149 → omnata_plugin_runtime-0.5.7a150}/README.md +0 -0
- {omnata_plugin_runtime-0.5.7a149 → omnata_plugin_runtime-0.5.7a150}/src/omnata_plugin_runtime/__init__.py +0 -0
- {omnata_plugin_runtime-0.5.7a149 → omnata_plugin_runtime-0.5.7a150}/src/omnata_plugin_runtime/api.py +0 -0
- {omnata_plugin_runtime-0.5.7a149 → omnata_plugin_runtime-0.5.7a150}/src/omnata_plugin_runtime/configuration.py +0 -0
- {omnata_plugin_runtime-0.5.7a149 → omnata_plugin_runtime-0.5.7a150}/src/omnata_plugin_runtime/forms.py +0 -0
- {omnata_plugin_runtime-0.5.7a149 → omnata_plugin_runtime-0.5.7a150}/src/omnata_plugin_runtime/logging.py +0 -0
- {omnata_plugin_runtime-0.5.7a149 → omnata_plugin_runtime-0.5.7a150}/src/omnata_plugin_runtime/plugin_entrypoints.py +0 -0
- {omnata_plugin_runtime-0.5.7a149 → omnata_plugin_runtime-0.5.7a150}/src/omnata_plugin_runtime/rate_limiting.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "omnata-plugin-runtime"
|
3
|
-
version = "0.5.7-
|
3
|
+
version = "0.5.7-a150"
|
4
4
|
description = "Classes and common runtime components for building and running Omnata Plugins"
|
5
5
|
authors = ["James Weakley <james.weakley@omnata.com>"]
|
6
6
|
readme = "README.md"
|
@@ -2413,11 +2413,11 @@ def omnata_udtf(
|
|
2413
2413
|
raise ValueError(f"The second argument must be a ConnectionConfigurationParameters, instead it was a {function_params[second_param_name].annotation}.")
|
2414
2414
|
|
2415
2415
|
if params[0].name.upper() != 'CONNECTION_PARAMETERS':
|
2416
|
-
|
2416
|
+
params_new = [SnowflakeFunctionParameter(
|
2417
2417
|
name='CONNECTION_PARAMETERS',
|
2418
2418
|
data_type='OBJECT',
|
2419
2419
|
description='The connection object, obtained from calling PLUGIN.PLUGIN_CONNECTION.')] + params
|
2420
|
-
cls._omnata_udtf_params =
|
2420
|
+
cls._omnata_udtf_params = params_new
|
2421
2421
|
if len(params) != len(function_params) -1:
|
2422
2422
|
raise ValueError(f"You must document all the parameters of the 'process' function in the @omnata_udtf decorator in the same order ('connection_parameters' will be included automatically).")
|
2423
2423
|
|
@@ -2512,12 +2512,12 @@ def omnata_udf(
|
|
2512
2512
|
if function_params[first_param_name].annotation != ConnectionConfigurationParameters:
|
2513
2513
|
raise ValueError(f"The first argument must be a ConnectionConfigurationParameters, instead it was a {function_params[first_param_name].annotation}.")
|
2514
2514
|
if params[0].name.upper() != 'CONNECTION_PARAMETERS':
|
2515
|
-
|
2515
|
+
params_new = [SnowflakeFunctionParameter(
|
2516
2516
|
name='CONNECTION_PARAMETERS',
|
2517
2517
|
data_type='OBJECT',
|
2518
2518
|
description='The connection object, obtained from calling PLUGIN.PLUGIN_CONNECTION.')] + params
|
2519
|
-
func._omnata_udf_params =
|
2520
|
-
if len(
|
2519
|
+
func._omnata_udf_params = params_new
|
2520
|
+
if len(params_new) != len(function_params):
|
2521
2521
|
raise ValueError(f"You must document all the parameters of the function in the @omnata_udf decorator in the same order ('connection_parameters' will be included automatically).")
|
2522
2522
|
|
2523
2523
|
@wraps(func)
|
File without changes
|
File without changes
|
File without changes
|
{omnata_plugin_runtime-0.5.7a149 → omnata_plugin_runtime-0.5.7a150}/src/omnata_plugin_runtime/api.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|