omnata-plugin-runtime 0.2.75__py3-none-any.whl → 0.2.77__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 +4 -0
- {omnata_plugin_runtime-0.2.75.dist-info → omnata_plugin_runtime-0.2.77.dist-info}/METADATA +1 -1
- {omnata_plugin_runtime-0.2.75.dist-info → omnata_plugin_runtime-0.2.77.dist-info}/RECORD +5 -5
- {omnata_plugin_runtime-0.2.75.dist-info → omnata_plugin_runtime-0.2.77.dist-info}/LICENSE +0 -0
- {omnata_plugin_runtime-0.2.75.dist-info → omnata_plugin_runtime-0.2.77.dist-info}/WHEEL +0 -0
@@ -26,6 +26,7 @@ from jinja2 import Environment
|
|
26
26
|
from pydantic import BaseModel # pylint: disable=no-name-in-module
|
27
27
|
from pandas import set_option
|
28
28
|
from snowflake.connector.pandas_tools import write_pandas
|
29
|
+
from snowflake.connector.version import VERSION
|
29
30
|
from snowflake.snowpark import Session
|
30
31
|
from snowflake.snowpark.functions import col
|
31
32
|
|
@@ -1068,6 +1069,8 @@ class InboundSyncRequest(SyncRequest):
|
|
1068
1069
|
)
|
1069
1070
|
|
1070
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)
|
1071
1074
|
# the timestamps in Snowflake are TIMESTAMP_LTZ, so we upload in string format to ensure the
|
1072
1075
|
# timezone information is present.
|
1073
1076
|
results_df["RETRIEVE_DATE"] = str(datetime.datetime.now().astimezone())
|
@@ -1101,6 +1104,7 @@ class InboundSyncRequest(SyncRequest):
|
|
1101
1104
|
)
|
1102
1105
|
# try setting parquet engine here, since the engine parameter does not seem to make it through to the write_pandas function
|
1103
1106
|
set_option('io.parquet.engine', 'fastparquet')
|
1107
|
+
logger.info(f"snowflake-connector-python version: {VERSION}")
|
1104
1108
|
success, nchunks, nrows, _ = write_pandas(
|
1105
1109
|
conn=self._session._conn._cursor.connection, # pylint: disable=protected-access
|
1106
1110
|
df=results_df,
|
@@ -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=
|
6
|
+
omnata_plugin_runtime/omnata_plugin.py,sha256=6TZb4OqGo3C6_SydvqssNzhmTM7GS0swe_xzu6NXAaQ,85992
|
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.
|
10
|
-
omnata_plugin_runtime-0.2.
|
11
|
-
omnata_plugin_runtime-0.2.
|
12
|
-
omnata_plugin_runtime-0.2.
|
9
|
+
omnata_plugin_runtime-0.2.77.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
|
10
|
+
omnata_plugin_runtime-0.2.77.dist-info/METADATA,sha256=bmEk89CIVcDMsWfIOE6RHjznkRUJgIm2OqcePFa0qeA,1133
|
11
|
+
omnata_plugin_runtime-0.2.77.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
12
|
+
omnata_plugin_runtime-0.2.77.dist-info/RECORD,,
|
File without changes
|
File without changes
|