omnata-plugin-runtime 0.6.3a169__py3-none-any.whl → 0.6.4__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- omnata_plugin_runtime/omnata_plugin.py +4 -0
- omnata_plugin_runtime/plugin_entrypoints.py +6 -6
- {omnata_plugin_runtime-0.6.3a169.dist-info → omnata_plugin_runtime-0.6.4.dist-info}/METADATA +1 -1
- omnata_plugin_runtime-0.6.4.dist-info/RECORD +12 -0
- omnata_plugin_runtime-0.6.3a169.dist-info/RECORD +0 -12
- {omnata_plugin_runtime-0.6.3a169.dist-info → omnata_plugin_runtime-0.6.4.dist-info}/LICENSE +0 -0
- {omnata_plugin_runtime-0.6.3a169.dist-info → omnata_plugin_runtime-0.6.4.dist-info}/WHEEL +0 -0
@@ -2357,6 +2357,8 @@ def omnata_udtf(
|
|
2357
2357
|
data_type='OBJECT',
|
2358
2358
|
description='The connection object, obtained from calling PLUGIN.PLUGIN_CONNECTION.')] + params
|
2359
2359
|
cls._omnata_udtf_params = params_new
|
2360
|
+
else:
|
2361
|
+
cls._omnata_udtf_params = params
|
2360
2362
|
if len(cls._omnata_udtf_params) != len(function_params) -1:
|
2361
2363
|
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).")
|
2362
2364
|
|
@@ -2471,6 +2473,8 @@ def omnata_udf(
|
|
2471
2473
|
data_type='OBJECT',
|
2472
2474
|
description='The connection object, obtained from calling PLUGIN.PLUGIN_CONNECTION.')] + params
|
2473
2475
|
func._omnata_udf_params = params_new
|
2476
|
+
else:
|
2477
|
+
func._omnata_udf_params = params
|
2474
2478
|
if len(func._omnata_udf_params) != len(function_params):
|
2475
2479
|
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).")
|
2476
2480
|
|
@@ -60,8 +60,8 @@ class PluginEntrypoint:
|
|
60
60
|
self._plugin_instance: OmnataPlugin = class_obj()
|
61
61
|
self._plugin_instance._session = session # pylint: disable=protected-access
|
62
62
|
# logging defaults
|
63
|
-
|
64
|
-
|
63
|
+
snowflake_logger = logging.getLogger("snowflake")
|
64
|
+
snowflake_logger.setLevel(logging.WARN) # we don't want snowflake queries being logged by default
|
65
65
|
# the sync engine can tell the plugin to override log level via a session variable
|
66
66
|
if session is not None:
|
67
67
|
try:
|
@@ -70,10 +70,10 @@ class PluginEntrypoint:
|
|
70
70
|
if result is not None:
|
71
71
|
log_level_overrides:Dict[str,str] = json.loads(result)
|
72
72
|
for logger_name,level in log_level_overrides.items():
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
for handler in
|
73
|
+
logger_override = logging.getLogger(logger_name)
|
74
|
+
logger_override.setLevel(level)
|
75
|
+
logger_override.propagate = False
|
76
|
+
for handler in logger_override.handlers:
|
77
77
|
handler.setLevel(level)
|
78
78
|
except Exception as e:
|
79
79
|
logger.error(f"Error setting log level overrides: {str(e)}")
|
@@ -0,0 +1,12 @@
|
|
1
|
+
omnata_plugin_runtime/__init__.py,sha256=MS9d1whnfT_B3-ThqZ7l63QeC_8OEKTuaYV5wTwRpBA,1576
|
2
|
+
omnata_plugin_runtime/api.py,sha256=FxzTqri4no8ClkOm7vZADG8aD47jcGBCTTQDEORmOJM,6326
|
3
|
+
omnata_plugin_runtime/configuration.py,sha256=TI6GaVFhewVawBCaYN34GujY57qEP6q2nik4YpSEk5s,38100
|
4
|
+
omnata_plugin_runtime/forms.py,sha256=GzSPEwcijsoPCXEO1mHiE8ylvX_KSE5TkhwqkymA2Ss,19755
|
5
|
+
omnata_plugin_runtime/logging.py,sha256=bn7eKoNWvtuyTk7RTwBS9UARMtqkiICtgMtzq3KA2V0,3272
|
6
|
+
omnata_plugin_runtime/omnata_plugin.py,sha256=fYeOnhLrM1Rebl8ZTAPHzw2lDF-XvSTjyWTiqilf8Bg,128752
|
7
|
+
omnata_plugin_runtime/plugin_entrypoints.py,sha256=-dIaNu8Z78BXGxencWQtmRvOnvU48B0uT_SuisbBalo,28504
|
8
|
+
omnata_plugin_runtime/rate_limiting.py,sha256=JukA0l7x7Klqz2b54mR-poP7NRxpUHgWSGp6h0B8u6Q,25612
|
9
|
+
omnata_plugin_runtime-0.6.4.dist-info/LICENSE,sha256=rGaMQG3R3F5-JGDp_-rlMKpDIkg5n0SI4kctTk8eZSI,56
|
10
|
+
omnata_plugin_runtime-0.6.4.dist-info/METADATA,sha256=x0h08ZRsxI0DwPo2Rx6ga10_AcrC1g9ztpCPSwMX3l8,1981
|
11
|
+
omnata_plugin_runtime-0.6.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
12
|
+
omnata_plugin_runtime-0.6.4.dist-info/RECORD,,
|
@@ -1,12 +0,0 @@
|
|
1
|
-
omnata_plugin_runtime/__init__.py,sha256=MS9d1whnfT_B3-ThqZ7l63QeC_8OEKTuaYV5wTwRpBA,1576
|
2
|
-
omnata_plugin_runtime/api.py,sha256=FxzTqri4no8ClkOm7vZADG8aD47jcGBCTTQDEORmOJM,6326
|
3
|
-
omnata_plugin_runtime/configuration.py,sha256=TI6GaVFhewVawBCaYN34GujY57qEP6q2nik4YpSEk5s,38100
|
4
|
-
omnata_plugin_runtime/forms.py,sha256=GzSPEwcijsoPCXEO1mHiE8ylvX_KSE5TkhwqkymA2Ss,19755
|
5
|
-
omnata_plugin_runtime/logging.py,sha256=bn7eKoNWvtuyTk7RTwBS9UARMtqkiICtgMtzq3KA2V0,3272
|
6
|
-
omnata_plugin_runtime/omnata_plugin.py,sha256=Your2a2MBHP5gilDPBsXifn7QAFWovXVV5oYk2pzfMk,128634
|
7
|
-
omnata_plugin_runtime/plugin_entrypoints.py,sha256=LivG_jw58uHRA6_P9ftKDMLWgdxy3ZpfEOKV3xd0bFU,28448
|
8
|
-
omnata_plugin_runtime/rate_limiting.py,sha256=JukA0l7x7Klqz2b54mR-poP7NRxpUHgWSGp6h0B8u6Q,25612
|
9
|
-
omnata_plugin_runtime-0.6.3a169.dist-info/LICENSE,sha256=rGaMQG3R3F5-JGDp_-rlMKpDIkg5n0SI4kctTk8eZSI,56
|
10
|
-
omnata_plugin_runtime-0.6.3a169.dist-info/METADATA,sha256=skj1fVRqv_z9Qs3JI2DKHZBEeP9USGmnqvtO0LF0ewQ,1985
|
11
|
-
omnata_plugin_runtime-0.6.3a169.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
12
|
-
omnata_plugin_runtime-0.6.3a169.dist-info/RECORD,,
|
File without changes
|
File without changes
|