omnata-plugin-runtime 0.5.7a149__py3-none-any.whl → 0.5.7a151__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- omnata_plugin_runtime/omnata_plugin.py +6 -6
- {omnata_plugin_runtime-0.5.7a149.dist-info → omnata_plugin_runtime-0.5.7a151.dist-info}/METADATA +1 -1
- {omnata_plugin_runtime-0.5.7a149.dist-info → omnata_plugin_runtime-0.5.7a151.dist-info}/RECORD +5 -5
- {omnata_plugin_runtime-0.5.7a149.dist-info → omnata_plugin_runtime-0.5.7a151.dist-info}/LICENSE +0 -0
- {omnata_plugin_runtime-0.5.7a149.dist-info → omnata_plugin_runtime-0.5.7a151.dist-info}/WHEEL +0 -0
@@ -2413,12 +2413,12 @@ 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 =
|
2421
|
-
if len(
|
2420
|
+
cls._omnata_udtf_params = params_new
|
2421
|
+
if len(params_new) != 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
|
|
2424
2424
|
@wraps(original_process)
|
@@ -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)
|
{omnata_plugin_runtime-0.5.7a149.dist-info → omnata_plugin_runtime-0.5.7a151.dist-info}/RECORD
RENAMED
@@ -3,10 +3,10 @@ omnata_plugin_runtime/api.py,sha256=FxzTqri4no8ClkOm7vZADG8aD47jcGBCTTQDEORmOJM,
|
|
3
3
|
omnata_plugin_runtime/configuration.py,sha256=TI6GaVFhewVawBCaYN34GujY57qEP6q2nik4YpSEk5s,38100
|
4
4
|
omnata_plugin_runtime/forms.py,sha256=GzSPEwcijsoPCXEO1mHiE8ylvX_KSE5TkhwqkymA2Ss,19755
|
5
5
|
omnata_plugin_runtime/logging.py,sha256=bn7eKoNWvtuyTk7RTwBS9UARMtqkiICtgMtzq3KA2V0,3272
|
6
|
-
omnata_plugin_runtime/omnata_plugin.py,sha256=
|
6
|
+
omnata_plugin_runtime/omnata_plugin.py,sha256=Ochrcfc2_DYHDg2TWfirislc3Wxd-CG9wf4ceh1_wxY,127087
|
7
7
|
omnata_plugin_runtime/plugin_entrypoints.py,sha256=PFSLsYEVnWHVvSoOYTtTK2JY6pp6_8_eYP53WqLRiPE,27975
|
8
8
|
omnata_plugin_runtime/rate_limiting.py,sha256=DVQ_bc-mVLBkrU1PTns1MWXhHiLpSB5HkWCcdePtJ2A,25611
|
9
|
-
omnata_plugin_runtime-0.5.
|
10
|
-
omnata_plugin_runtime-0.5.
|
11
|
-
omnata_plugin_runtime-0.5.
|
12
|
-
omnata_plugin_runtime-0.5.
|
9
|
+
omnata_plugin_runtime-0.5.7a151.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
|
10
|
+
omnata_plugin_runtime-0.5.7a151.dist-info/METADATA,sha256=350JtZXdUSRv3ZY6NCOueFsy2Fuv9tagIwAFOj9fVyk,1985
|
11
|
+
omnata_plugin_runtime-0.5.7a151.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
12
|
+
omnata_plugin_runtime-0.5.7a151.dist-info/RECORD,,
|
{omnata_plugin_runtime-0.5.7a149.dist-info → omnata_plugin_runtime-0.5.7a151.dist-info}/LICENSE
RENAMED
File without changes
|
{omnata_plugin_runtime-0.5.7a149.dist-info → omnata_plugin_runtime-0.5.7a151.dist-info}/WHEEL
RENAMED
File without changes
|