omnata-plugin-runtime 0.5.7a149__tar.gz → 0.5.7a151__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "omnata-plugin-runtime"
3
- version = "0.5.7-a149"
3
+ version = "0.5.7-a151"
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,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)