omnata-plugin-runtime 0.5.7a149__py3-none-any.whl → 0.5.7a151__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
- params = [SnowflakeFunctionParameter(
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 = params
2421
- if len(params) != len(function_params) -1:
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
- params = [SnowflakeFunctionParameter(
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 = params
2520
- if len(params) != len(function_params):
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.5.7a149
3
+ Version: 0.5.7a151
4
4
  Summary: Classes and common runtime components for building and running Omnata Plugins
5
5
  Author: James Weakley
6
6
  Author-email: james.weakley@omnata.com
@@ -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=kbEo288aeciuHzHWLodvkWa-jWLrwjPn0NFQxmOd9ns,127063
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.7a149.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
10
- omnata_plugin_runtime-0.5.7a149.dist-info/METADATA,sha256=GA-eNt-5EUBEgjQc0jCVpm1_ESmhEquO-z-ZRnUq0bg,1985
11
- omnata_plugin_runtime-0.5.7a149.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
12
- omnata_plugin_runtime-0.5.7a149.dist-info/RECORD,,
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,,