omnata-plugin-runtime 0.2.76__py3-none-any.whl → 0.2.78__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.
@@ -1069,6 +1069,8 @@ class InboundSyncRequest(SyncRequest):
1069
1069
  )
1070
1070
 
1071
1071
  results_df["APP_IDENTIFIER"] = results_df["RECORD_DATA"].apply(lambda x: get_nested_value(dict(x),primary_key_field))
1072
+ # we jump the record data to a json string to make uploading to Snowflake less error prone
1073
+ results_df["RECORD_DATA"] = results_df["RECORD_DATA"].apply(json.dumps)
1072
1074
  # the timestamps in Snowflake are TIMESTAMP_LTZ, so we upload in string format to ensure the
1073
1075
  # timezone information is present.
1074
1076
  results_df["RETRIEVE_DATE"] = str(datetime.datetime.now().astimezone())
@@ -1101,16 +1103,13 @@ class InboundSyncRequest(SyncRequest):
1101
1103
  f"Applying {len(results_df)} results to {self._full_results_table_name}"
1102
1104
  )
1103
1105
  # try setting parquet engine here, since the engine parameter does not seem to make it through to the write_pandas function
1104
- set_option('io.parquet.engine', 'fastparquet')
1105
- logger.info(f"snowflake-connector-python version: {VERSION}")
1106
1106
  success, nchunks, nrows, _ = write_pandas(
1107
1107
  conn=self._session._conn._cursor.connection, # pylint: disable=protected-access
1108
1108
  df=results_df,
1109
1109
  table_name=self._full_results_table_name,
1110
1110
  quote_identifiers=False, # already done in get_temp_table_name
1111
1111
  # schema='INBOUND_RAW', # it seems to be ok to provide schema in the table name
1112
- table_type="transient",
1113
- engine='fastparquet'
1112
+ table_type="transient"
1114
1113
  )
1115
1114
  if not success:
1116
1115
  raise ValueError(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.2.76
3
+ Version: 0.2.78
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
@@ -9,7 +9,6 @@ Classifier: Programming Language :: Python :: 3
9
9
  Classifier: Programming Language :: Python :: 3.8
10
10
  Classifier: Programming Language :: Python :: 3.9
11
11
  Classifier: Programming Language :: Python :: 3.10
12
- Requires-Dist: fastparquet (>=2023.10,<2024.0)
13
12
  Requires-Dist: jinja2 (>=3,<4)
14
13
  Requires-Dist: pandas
15
14
  Requires-Dist: pydantic (>=1,<2)
@@ -3,10 +3,10 @@ omnata_plugin_runtime/api.py,sha256=vKq7goVPX5cPQ9CVN9l8RmpJDcqDwS5y9v1IWhWjBbk,
3
3
  omnata_plugin_runtime/configuration.py,sha256=NICse7qMtReIYY4ZCu8ng4QDJ4rFP0g3mZwc8m1Xl54,32247
4
4
  omnata_plugin_runtime/forms.py,sha256=_KqSMQG749wImLKxPZh3B3doTZMbP5jDvF6BhQNkPCM,17375
5
5
  omnata_plugin_runtime/logging.py,sha256=Q6eSqrr3SzwfVAg4r4sV1dlxeNS_PzOtZfieoWUEOZQ,3232
6
- omnata_plugin_runtime/omnata_plugin.py,sha256=3x1xvJ2YaJDh7qHRE9BVg6QnN-V5QsVkYW0NXxcp37o,85805
6
+ omnata_plugin_runtime/omnata_plugin.py,sha256=pFp2zkPR0TxeXHS4fp3J05brSj_x7qbH7dVQy9gZ-28,85809
7
7
  omnata_plugin_runtime/plugin_entrypoints.py,sha256=dV_JOEWffdkAkofFYJMAsM_-gE9OpM2-paI2dsh5Rzo,24352
8
8
  omnata_plugin_runtime/rate_limiting.py,sha256=QO8VB1H8al6a8-ydohUmL0c5JynXG2bulmuPRs2-2-Y,14910
9
- omnata_plugin_runtime-0.2.76.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
10
- omnata_plugin_runtime-0.2.76.dist-info/METADATA,sha256=vsXT_J5tUXWHaXSuTMvhQU3rvwuWeCk9CRYKEjfSfAM,1133
11
- omnata_plugin_runtime-0.2.76.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
12
- omnata_plugin_runtime-0.2.76.dist-info/RECORD,,
9
+ omnata_plugin_runtime-0.2.78.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
10
+ omnata_plugin_runtime-0.2.78.dist-info/METADATA,sha256=YCNJW2HGLsrL6Ymo1LMihTJ7ATpA6otH3XCujB9-v-I,1086
11
+ omnata_plugin_runtime-0.2.78.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
12
+ omnata_plugin_runtime-0.2.78.dist-info/RECORD,,