warpzone-sdk 15.1.0.dev1__py3-none-any.whl → 15.1.1__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.
warpzone/db/client.py CHANGED
@@ -195,12 +195,10 @@ class WarpzoneDatabaseClient:
195
195
  include_validity_period_columns (bool, optional): Whether to include
196
196
  validity period columns in the result;
197
197
  (`valid_from_time_utc`, `valid_to_time_utc`).
198
- Defaults to False. If set to True while using `columns`-argument, make sure
199
- to include these columns in the `columns`-list.
198
+ Defaults to False.
200
199
  include_generated_columns (bool, optional): Whether to include generated
201
200
  columns in the result; (e.g. `valid_from_time_utc`, `valid_to_time_utc`).
202
- Defaults to False. If set to True while using `columns`-argument, make sure
203
- to include these columns in the `columns`-list.
201
+ Defaults to False.
204
202
 
205
203
  Returns:
206
204
  pd.DataFrame: The result of the query.
@@ -252,10 +250,12 @@ class WarpzoneDatabaseClient:
252
250
  for field in table.schema().fields:
253
251
  if field.generated_as is not None:
254
252
  generated_cols.append(field.column_name)
255
- pd_df = pd_df.drop(columns=generated_cols)
253
+ pd_df = pd_df.drop(columns=generated_cols, errors="ignore")
256
254
 
257
255
  # Drop valid-from/to columns
258
256
  if not include_validity_period_columns:
259
- pd_df = pd_df.drop(columns=["valid_from_time_utc", "valid_to_time_utc"])
257
+ pd_df = pd_df.drop(
258
+ columns=["valid_from_time_utc", "valid_to_time_utc"], errors="ignore"
259
+ )
260
260
 
261
261
  return pd_df
@@ -53,8 +53,10 @@ class Table:
53
53
  As the `Table`-class is lazily initialized,
54
54
  the `delta_table`-property is initialized on the first access
55
55
  and saved for future use to minimize overhead.
56
- It is *important* that this property is not initialized when creating
57
- the `Table`-object, because using the same instance can lead to transaction
56
+ It is *important* that this property is only initialized within
57
+ a lock when doing concurrent reads/writes
58
+ and not initialized when creating the `Table`-object.
59
+ This is important because using the same instance can lead to transaction
58
60
  issues in delta as DeltaTable uses metadata (transaction id) from
59
61
  the first time the object is instantiated.
60
62
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: warpzone-sdk
3
- Version: 15.1.0.dev1
3
+ Version: 15.1.1
4
4
  Summary: The main objective of this package is to centralize logic used to interact with Azure Functions, Azure Service Bus and Azure Table Storage
5
5
  Author: Team Enigma
6
6
  Author-email: enigma@energinet.dk
@@ -2,7 +2,7 @@ warpzone/__init__.py,sha256=Ay7znIadokCdHHqsPlWAqhdg-zdWhXHNtxVinViYm7o,1533
2
2
  warpzone/blobstorage/__init__.py,sha256=lnc0uiaGLF0qMi_rWhCpRSFvaj0CJEiMCAl6Yqn1ZiA,21
3
3
  warpzone/blobstorage/client.py,sha256=YwDV83acoCeHS_D_ydsTYwnf56rSTy9CKpsxqeoXmBs,4638
4
4
  warpzone/db/__init__.py,sha256=lnc0uiaGLF0qMi_rWhCpRSFvaj0CJEiMCAl6Yqn1ZiA,21
5
- warpzone/db/client.py,sha256=tqY_ANThnO72rBaB4sydigLhlSFwCmadg_6rVZwjO8M,9688
5
+ warpzone/db/client.py,sha256=TdzfpgC81floe0WM7JGNbQpVz1esj1uXjnIZ9kTZmlY,9518
6
6
  warpzone/deltastorage/__init__.py,sha256=cV8sGT2N_N5Z-E179NMW5O7q3FUDrb3j5f-yVNlNPv0,152
7
7
  warpzone/deltastorage/data_types.py,sha256=tWjLO_0ig7-tYxSHShvrd0znA7FFDnS-wBuFClUQG2U,2059
8
8
  warpzone/deltastorage/generated_columns.py,sha256=Dr_bihM7v9JKCgBXxc3JQC2P2mUGobXsReRKOl6jDO4,4765
@@ -10,7 +10,7 @@ warpzone/deltastorage/lock_client.py,sha256=z19ub2ahsUHdcriRmgLOxO6zGOGadxF6NmNA
10
10
  warpzone/deltastorage/schema.py,sha256=AhkJnsB9oX3HVwoCUWcYSdD1zwouT2wj5XydXgU5WEA,4483
11
11
  warpzone/deltastorage/slicing.py,sha256=r4Fbg8HHBkZlrYEC847yq86caCTTE02JzpnY_TqI_MA,638
12
12
  warpzone/deltastorage/store.py,sha256=LwoDXk0xtQuzfMbqv_ldIRh-9RzA-Hx9NRhtBmlbWB8,4812
13
- warpzone/deltastorage/table.py,sha256=v2vWtMk_y12gq23S545cT9_1mVgxABgxyENVR5FEfww,5609
13
+ warpzone/deltastorage/table.py,sha256=_5tBQEKnimNWsAWyVhGjuX_3pllqzakkMrvALw6-2Qw,5713
14
14
  warpzone/enums/__init__.py,sha256=Gvd-EeZc5jWu5WdusYe3i3Zyt1v85CljBK_EJu7EwZk,24
15
15
  warpzone/enums/topicenum.py,sha256=cj9F7kYzwvDeHN5jJXwgnHXTh6E64VwRNpFepNthIyk,213
16
16
  warpzone/function/__init__.py,sha256=rJOZBpWsUgjMc7YtXMJ1rLGm45KB1AhDJ_Y2ISiSISc,35
@@ -52,6 +52,6 @@ warpzone/tools/copy.py,sha256=5fddotMZkXZO8avzUbGOhvs0cp8mce95pNpy0oPVjnQ,2596
52
52
  warpzone/transform/__init__.py,sha256=ruGa7tl-v4ndlWpULE1jSGU_a4_iRc3V6eyNr5xKP9E,27
53
53
  warpzone/transform/data.py,sha256=Abb8PcrgMbbNCJkkIUdtrTHdlY0OfXid387qw1nDpFY,2362
54
54
  warpzone/transform/schema.py,sha256=nbSQtDMvXkyqGKuwhuFCF0WsEDsaNyoPYpMKvbsKlv8,2423
55
- warpzone_sdk-15.1.0.dev1.dist-info/METADATA,sha256=e3JKNVKYwwh364-9zqMO5mXylxVDAUHiPH0HDnVXg4Y,7284
56
- warpzone_sdk-15.1.0.dev1.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
57
- warpzone_sdk-15.1.0.dev1.dist-info/RECORD,,
55
+ warpzone_sdk-15.1.1.dist-info/METADATA,sha256=6WeGlAAYB3qDhdzNl4bS3GFiEzmAasRu-kakPJ3LqSM,7279
56
+ warpzone_sdk-15.1.1.dist-info/WHEEL,sha256=kJCRJT_g0adfAJzTx2GUMmS80rTJIVHRCfG0DQgLq3o,88
57
+ warpzone_sdk-15.1.1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.3.0
2
+ Generator: poetry-core 2.3.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any