omnata-plugin-runtime 0.5.9a160__tar.gz → 0.5.9a161__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {omnata_plugin_runtime-0.5.9a160 → omnata_plugin_runtime-0.5.9a161}/PKG-INFO +1 -1
- {omnata_plugin_runtime-0.5.9a160 → omnata_plugin_runtime-0.5.9a161}/pyproject.toml +1 -1
- {omnata_plugin_runtime-0.5.9a160 → omnata_plugin_runtime-0.5.9a161}/src/omnata_plugin_runtime/omnata_plugin.py +6 -4
- {omnata_plugin_runtime-0.5.9a160 → omnata_plugin_runtime-0.5.9a161}/LICENSE +0 -0
- {omnata_plugin_runtime-0.5.9a160 → omnata_plugin_runtime-0.5.9a161}/README.md +0 -0
- {omnata_plugin_runtime-0.5.9a160 → omnata_plugin_runtime-0.5.9a161}/src/omnata_plugin_runtime/__init__.py +0 -0
- {omnata_plugin_runtime-0.5.9a160 → omnata_plugin_runtime-0.5.9a161}/src/omnata_plugin_runtime/api.py +0 -0
- {omnata_plugin_runtime-0.5.9a160 → omnata_plugin_runtime-0.5.9a161}/src/omnata_plugin_runtime/configuration.py +0 -0
- {omnata_plugin_runtime-0.5.9a160 → omnata_plugin_runtime-0.5.9a161}/src/omnata_plugin_runtime/forms.py +0 -0
- {omnata_plugin_runtime-0.5.9a160 → omnata_plugin_runtime-0.5.9a161}/src/omnata_plugin_runtime/logging.py +0 -0
- {omnata_plugin_runtime-0.5.9a160 → omnata_plugin_runtime-0.5.9a161}/src/omnata_plugin_runtime/plugin_entrypoints.py +0 -0
- {omnata_plugin_runtime-0.5.9a160 → omnata_plugin_runtime-0.5.9a161}/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.9-
|
3
|
+
version = "0.5.9-a161"
|
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"
|
@@ -2432,8 +2432,9 @@ def find_udtf_classes(path:str = '.') -> List[UDTFDefinition]:
|
|
2432
2432
|
udtf_obj = cast(UDTFDefinition,obj)
|
2433
2433
|
if udtf_obj.language == 'java':
|
2434
2434
|
# because the decorator wasn't used, we need to check if we need to add the connection_parameters parameter
|
2435
|
-
if udtf_obj.expose_to_consumer
|
2436
|
-
udtf_obj.params
|
2435
|
+
if udtf_obj.expose_to_consumer:
|
2436
|
+
if len(udtf_obj.params) == 0 or udtf_obj.params[0].name.upper() != 'CONNECTION_PARAMETERS':
|
2437
|
+
udtf_obj.params = [SnowflakeFunctionParameter(
|
2437
2438
|
name='CONNECTION_PARAMETERS',
|
2438
2439
|
data_type='OBJECT',
|
2439
2440
|
description='The connection object, obtained from calling PLUGIN.PLUGIN_CONNECTION.')] + udtf_obj.params
|
@@ -2547,8 +2548,9 @@ def find_udf_functions(path:str = '.') -> List[UDFDefinition]:
|
|
2547
2548
|
udf_obj = cast(UDFDefinition,obj)
|
2548
2549
|
if udf_obj.language == 'java':
|
2549
2550
|
# because the decorator wasn't used, we need to check if we need to add the connection_parameters parameter
|
2550
|
-
if udf_obj.expose_to_consumer
|
2551
|
-
udf_obj.params
|
2551
|
+
if udf_obj.expose_to_consumer:
|
2552
|
+
if len(udf_obj.params) == 0 or udf_obj.params[0].name.upper() != 'CONNECTION_PARAMETERS':
|
2553
|
+
udf_obj.params = [SnowflakeFunctionParameter(
|
2552
2554
|
name='CONNECTION_PARAMETERS',
|
2553
2555
|
data_type='OBJECT',
|
2554
2556
|
description='The connection object, obtained from calling PLUGIN.PLUGIN_CONNECTION.')] + udf_obj.params
|
File without changes
|
File without changes
|
File without changes
|
{omnata_plugin_runtime-0.5.9a160 → omnata_plugin_runtime-0.5.9a161}/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
|