omnata-plugin-runtime 0.8.1a200__tar.gz → 0.8.2__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.8.1a200
3
+ Version: 0.8.2
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
@@ -35,7 +35,7 @@ Requires-Dist: pyyaml (<=6.0.1)
35
35
  Requires-Dist: requests (>=2,<=2.32.3)
36
36
  Requires-Dist: setuptools (<=72.1.0)
37
37
  Requires-Dist: snowflake-connector-python (>=3,<=3.12.0)
38
- Requires-Dist: snowflake-snowpark-python (==1.23.0)
38
+ Requires-Dist: snowflake-snowpark-python (>=1.20.0,<=1.24.0)
39
39
  Requires-Dist: snowflake-telemetry-python (<=0.5.0)
40
40
  Requires-Dist: tenacity (>=8,<=8.2.3)
41
41
  Requires-Dist: tomlkit (<=0.11.1)
@@ -51,3 +51,4 @@ It contains data classes, interfaces and application logic used to perform plugi
51
51
 
52
52
  For instructions on creating plugins, visit our [docs site](https://docs.omnata.com/omnata-product-documentation/omnata-sync-for-snowflake/plugins/creating-plugins).
53
53
 
54
+
@@ -4,3 +4,4 @@ This package is a runtime dependency for [Omnata Plugins](https://docs.omnata.co
4
4
  It contains data classes, interfaces and application logic used to perform plugin operations.
5
5
 
6
6
  For instructions on creating plugins, visit our [docs site](https://docs.omnata.com/omnata-product-documentation/omnata-sync-for-snowflake/plugins/creating-plugins).
7
+
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "omnata-plugin-runtime"
3
- version = "0.8.1-a200"
3
+ version = "0.8.2"
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"
@@ -8,7 +8,7 @@ packages = [{include = "omnata_plugin_runtime", from = "src"}]
8
8
 
9
9
  [tool.poetry.dependencies]
10
10
  python = ">=3.8, <3.11"
11
- snowflake-snowpark-python = "1.23.0" # latest version available on Snowflake Anaconda
11
+ snowflake-snowpark-python = ">=1.20.0,<=1.24.0" # latest version available on Snowflake Anaconda, but allow pinning to 1.20.0 for to_pandas_batches workaround
12
12
  snowflake-connector-python = "^3, <=3.12.0" # latest version available on Snowflake Anaconda
13
13
  cryptography = "<=43.0.0"
14
14
  annotated-types = "<=0.6.0"
@@ -103,8 +103,6 @@ class PluginManifest(SubscriptableBaseModel):
103
103
  :param bool supports_inbound: A flag to indicate whether or not the plugin supports inbound sync. Support for inbound sync behaviours (full/incremental) is defined per inbound stream.
104
104
  :param List[OutboundSyncStrategy] supported_outbound_strategies: A list of sync strategies that the plugin can support, e.g. create,upsert.
105
105
  :param List[ConnectivityOption] supported_connectivity_options: A list of connectivity options that the plugin can support, e.g. direct,ngrok,privatelink
106
- :param bool inbound_results_uses_json: A flag to indicate whether or not the plugin returns inbound sync results in JSON format (RECORD_DATA column) or straight into OBJECT columns (RECORD_OBJECT column).
107
- :param bool outbound_results_uses_json: A flag to indicate whether or not the plugin returns outbound sync results in JSON format (RESULT column) or straight into OBJECT columns (RESULT_OBJECT column).
108
106
  """
109
107
 
110
108
  plugin_id: str
@@ -117,8 +115,6 @@ class PluginManifest(SubscriptableBaseModel):
117
115
  supported_connectivity_options: List[ConnectivityOption] = Field(
118
116
  default_factory=lambda: [ConnectivityOption.DIRECT]
119
117
  )
120
- inbound_results_uses_json: bool = True
121
- outbound_results_uses_json: bool = True
122
118
 
123
119
 
124
120
  class SnowflakeFunctionParameter(BaseModel):
@@ -2154,7 +2150,7 @@ def __managed_inbound_processing_worker(
2154
2150
  try:
2155
2151
  with tracer.start_as_current_span("managed_inbound_processing") as managed_inbound_processing_span:
2156
2152
  logger.debug(f"worker {worker_index} processing stream {stream.stream_name}, invoking plugin class method {method.__name__}")
2157
- managed_inbound_processing_span.set_attribute("stream_name", stream.stream_name)
2153
+ managed_inbound_processing_span.set_attribute("omnata.sync.stream_name", stream.stream_name)
2158
2154
  result = method(plugin_class_obj, *(stream, *method_args), **method_kwargs)
2159
2155
  logger.debug(f"worker {worker_index} completed processing stream {stream.stream_name}")
2160
2156
  if result is not None and result is False: