omnata-plugin-runtime 0.5.7a146__tar.gz → 0.5.7a148__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.7a146
3
+ Version: 0.5.7a148
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-a146"
3
+ version = "0.5.7-a148"
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"
@@ -2253,7 +2253,8 @@ class SnowflakeUDTFResultColumn:
2253
2253
  """
2254
2254
  name: str
2255
2255
  data_type: str
2256
- description: str
2256
+ def __str__(self):
2257
+ return f"{self.name} {self.data_type}"
2257
2258
 
2258
2259
  @dataclass
2259
2260
  class PythonUDTFDefinition:
@@ -2456,7 +2457,9 @@ def find_udtf_classes(path:str = '.') -> List[PythonUDTFDefinition | JavaUDTFDef
2456
2457
  matching_classes.append(PythonUDTFDefinition(
2457
2458
  name=obj._omnata_udtf_name,
2458
2459
  description=obj._omnata_udtf_description,
2459
- params=obj._omnata_udtf_params,
2460
+ params=[SnowflakeFunctionParameter(name='CONNECTION_PARAMETERS',
2461
+ data_type='OBJECT',
2462
+ description='The connection object, obtained from calling PLUGIN.PLUGIN_CONNECTION')]+obj._omnata_udtf_params,
2460
2463
  result_columns=obj._omnata_udtf_result_columns,
2461
2464
  expose_to_consumer=obj._omnata_udtf_expose_to_consumer,
2462
2465
  handler=obj.__module__+'.'+obj.__name__
@@ -2544,7 +2547,9 @@ def find_udf_functions(path:str = '.') -> List[PythonUDFDefinition | JavaUDFDefi
2544
2547
  matching_classes.append(PythonUDFDefinition(
2545
2548
  name=obj._omnata_udf_name,
2546
2549
  description=obj._omnata_udf_description,
2547
- params=obj._omnata_udf_params,
2550
+ params=[SnowflakeFunctionParameter(name='CONNECTION_PARAMETERS',
2551
+ data_type='OBJECT',
2552
+ description='The connection object, obtained from calling PLUGIN.PLUGIN_CONNECTION')] + obj._omnata_udf_params,
2548
2553
  result_data_type=obj._omnata_udf_result_data_type,
2549
2554
  expose_to_consumer=obj._omnata_udf_expose_to_consumer,
2550
2555
  packages=[],