omnata-plugin-runtime 0.5.8a159__py3-none-any.whl → 0.5.9a160__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.
- omnata_plugin_runtime/omnata_plugin.py +19 -3
- {omnata_plugin_runtime-0.5.8a159.dist-info → omnata_plugin_runtime-0.5.9a160.dist-info}/METADATA +1 -1
- {omnata_plugin_runtime-0.5.8a159.dist-info → omnata_plugin_runtime-0.5.9a160.dist-info}/RECORD +5 -5
- {omnata_plugin_runtime-0.5.8a159.dist-info → omnata_plugin_runtime-0.5.9a160.dist-info}/LICENSE +0 -0
- {omnata_plugin_runtime-0.5.8a159.dist-info → omnata_plugin_runtime-0.5.9a160.dist-info}/WHEEL +0 -0
@@ -2429,7 +2429,15 @@ def find_udtf_classes(path:str = '.') -> List[UDTFDefinition]:
|
|
2429
2429
|
for name, obj in inspect.getmembers(module):
|
2430
2430
|
# Check if the class has the specified attribute
|
2431
2431
|
if isinstance(obj, UDTFDefinition) and cast(UDTFDefinition,obj).language == 'java':
|
2432
|
-
|
2432
|
+
udtf_obj = cast(UDTFDefinition,obj)
|
2433
|
+
if udtf_obj.language == 'java':
|
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 and udtf_obj.params[0].name.upper() != 'CONNECTION_PARAMETERS':
|
2436
|
+
udtf_obj.params = [SnowflakeFunctionParameter(
|
2437
|
+
name='CONNECTION_PARAMETERS',
|
2438
|
+
data_type='OBJECT',
|
2439
|
+
description='The connection object, obtained from calling PLUGIN.PLUGIN_CONNECTION.')] + udtf_obj.params
|
2440
|
+
matching_classes.append(udtf_obj)
|
2433
2441
|
|
2434
2442
|
return matching_classes
|
2435
2443
|
|
@@ -2535,7 +2543,15 @@ def find_udf_functions(path:str = '.') -> List[UDFDefinition]:
|
|
2535
2543
|
# java doesn't use the python decorator, so we need to check for the class directly
|
2536
2544
|
for name, obj in inspect.getmembers(module):
|
2537
2545
|
# Check if the class has the specified attribute
|
2538
|
-
if isinstance(obj, UDFDefinition)
|
2539
|
-
|
2546
|
+
if isinstance(obj, UDFDefinition):
|
2547
|
+
udf_obj = cast(UDFDefinition,obj)
|
2548
|
+
if udf_obj.language == 'java':
|
2549
|
+
# 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 and udf_obj.params[0].name.upper() != 'CONNECTION_PARAMETERS':
|
2551
|
+
udf_obj.params = [SnowflakeFunctionParameter(
|
2552
|
+
name='CONNECTION_PARAMETERS',
|
2553
|
+
data_type='OBJECT',
|
2554
|
+
description='The connection object, obtained from calling PLUGIN.PLUGIN_CONNECTION.')] + udf_obj.params
|
2555
|
+
matching_classes.append(udf_obj)
|
2540
2556
|
|
2541
2557
|
return matching_classes
|
{omnata_plugin_runtime-0.5.8a159.dist-info → omnata_plugin_runtime-0.5.9a160.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=gOSN0cqFG5pFesdvS7COQnw9fHp4dFUwM9XIMbng_Xc,128844
|
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.9a160.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
|
10
|
+
omnata_plugin_runtime-0.5.9a160.dist-info/METADATA,sha256=mFgWPJAcpXT_pZUDsJhqm1LJe5gsJyEA16HPKhKow3I,1985
|
11
|
+
omnata_plugin_runtime-0.5.9a160.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
12
|
+
omnata_plugin_runtime-0.5.9a160.dist-info/RECORD,,
|
{omnata_plugin_runtime-0.5.8a159.dist-info → omnata_plugin_runtime-0.5.9a160.dist-info}/LICENSE
RENAMED
File without changes
|
{omnata_plugin_runtime-0.5.8a159.dist-info → omnata_plugin_runtime-0.5.9a160.dist-info}/WHEEL
RENAMED
File without changes
|