vastdb 0.0.5.5__py3-none-any.whl → 0.0.5.7__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.
- vastdb/api.py +4 -2
- {vastdb-0.0.5.5.dist-info → vastdb-0.0.5.7.dist-info}/METADATA +1 -1
- {vastdb-0.0.5.5.dist-info → vastdb-0.0.5.7.dist-info}/RECORD +6 -6
- {vastdb-0.0.5.5.dist-info → vastdb-0.0.5.7.dist-info}/LICENSE +0 -0
- {vastdb-0.0.5.5.dist-info → vastdb-0.0.5.7.dist-info}/WHEEL +0 -0
- {vastdb-0.0.5.5.dist-info → vastdb-0.0.5.7.dist-info}/top_level.txt +0 -0
vastdb/api.py
CHANGED
|
@@ -982,7 +982,6 @@ class VastdbApi:
|
|
|
982
982
|
return "$".join([f"{k}={v}" for k, v in kwargs.items()])
|
|
983
983
|
|
|
984
984
|
def create_table(self, bucket, schema, name, arrow_schema, txid=0, client_tags=[], expected_retvals=[],
|
|
985
|
-
topic_partitions=0, create_imports_table=False, use_external_row_ids_allocation=False):
|
|
986
985
|
topic_partitions=0, create_imports_table=False, use_external_row_ids_allocation=False,
|
|
987
986
|
src_timestamp=None, retention_in_mins=None, past_threshold_ts=None, future_threshold_ts=None):
|
|
988
987
|
"""
|
|
@@ -1008,7 +1007,8 @@ class VastdbApi:
|
|
|
1008
1007
|
|
|
1009
1008
|
if topic_partitions > 0:
|
|
1010
1009
|
table_props = self.encode_table_props(src_timestamp=src_timestamp, retention_in_mins=retention_in_mins, past_threshold_ts=past_threshold_ts, future_threshold_ts=future_threshold_ts)
|
|
1011
|
-
|
|
1010
|
+
if table_props is not None:
|
|
1011
|
+
url_params['table-props'] = table_props
|
|
1012
1012
|
|
|
1013
1013
|
res = self.session.post(self._api_prefix(bucket=bucket, schema=schema, table=name, command="table", url_params=url_params),
|
|
1014
1014
|
data=serialized_schema, headers=headers)
|
|
@@ -1076,6 +1076,8 @@ class VastdbApi:
|
|
|
1076
1076
|
|
|
1077
1077
|
if src_timestamp is not None or retention_in_mins is not None or past_threshold_ts is not None or future_threshold_ts is not None:
|
|
1078
1078
|
table_properties = self.encode_table_props(src_timestamp=src_timestamp, retention_in_mins=retention_in_mins, past_threshold_ts=past_threshold_ts, future_threshold_ts=future_threshold_ts)
|
|
1079
|
+
if table_properties is None:
|
|
1080
|
+
table_properties = ""
|
|
1079
1081
|
|
|
1080
1082
|
properties = builder.CreateString(table_properties)
|
|
1081
1083
|
tabular_alter_table.Start(builder)
|
|
@@ -148,9 +148,9 @@ vast_flatbuf/tabular/ObjectDetails.py,sha256=qW0WtbkCYYE_L-Kw6VNRDCLYaRm5lKvTbLN
|
|
|
148
148
|
vast_flatbuf/tabular/S3File.py,sha256=KC9c2oS5-JXwTTriUVFdjOvRG0B54Cq9kviSDZY3NI0,4450
|
|
149
149
|
vast_flatbuf/tabular/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
150
150
|
vastdb/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
151
|
-
vastdb/api.py,sha256=
|
|
152
|
-
vastdb-0.0.5.
|
|
153
|
-
vastdb-0.0.5.
|
|
154
|
-
vastdb-0.0.5.
|
|
155
|
-
vastdb-0.0.5.
|
|
156
|
-
vastdb-0.0.5.
|
|
151
|
+
vastdb/api.py,sha256=NgXpHkclN6mV1uR3Jl7ksIFbODE8MF9JVMws_GPious,126722
|
|
152
|
+
vastdb-0.0.5.7.dist-info/LICENSE,sha256=obffan7LYrq7hLHNrY7vHcn2pKUTBUYXMKu-VOAvDxU,11333
|
|
153
|
+
vastdb-0.0.5.7.dist-info/METADATA,sha256=qEXKBdRpLG4juHrG7NwyAmmwv1YxLX4zEcrIesJi_tE,1349
|
|
154
|
+
vastdb-0.0.5.7.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
155
|
+
vastdb-0.0.5.7.dist-info/top_level.txt,sha256=Vsj2MKtlhPg0J4so64slQtnwjhgoPmJgcG-6YcVAwVc,20
|
|
156
|
+
vastdb-0.0.5.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|