singlestoredb 1.6.1__py3-none-any.whl → 1.6.2__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.
Potentially problematic release.
This version of singlestoredb might be problematic. Click here for more details.
- singlestoredb/__init__.py +1 -1
- singlestoredb/tests/test_basics.py +58 -0
- singlestoredb/tests/test_fusion.py +4 -2
- {singlestoredb-1.6.1.dist-info → singlestoredb-1.6.2.dist-info}/METADATA +11 -11
- {singlestoredb-1.6.1.dist-info → singlestoredb-1.6.2.dist-info}/RECORD +9 -9
- {singlestoredb-1.6.1.dist-info → singlestoredb-1.6.2.dist-info}/WHEEL +1 -1
- {singlestoredb-1.6.1.dist-info → singlestoredb-1.6.2.dist-info}/LICENSE +0 -0
- {singlestoredb-1.6.1.dist-info → singlestoredb-1.6.2.dist-info}/entry_points.txt +0 -0
- {singlestoredb-1.6.1.dist-info → singlestoredb-1.6.2.dist-info}/top_level.txt +0 -0
singlestoredb/__init__.py
CHANGED
|
@@ -1197,6 +1197,64 @@ class TestBasics(unittest.TestCase):
|
|
|
1197
1197
|
cur.execute('SELECT * FROM badutf8')
|
|
1198
1198
|
list(cur)
|
|
1199
1199
|
|
|
1200
|
+
def test_character_lengths(self):
|
|
1201
|
+
if 'http' in self.conn.driver:
|
|
1202
|
+
self.skipTest('Character lengths too long for HTTP interface')
|
|
1203
|
+
|
|
1204
|
+
tbl_id = str(id(self))
|
|
1205
|
+
|
|
1206
|
+
self.cur.execute('DROP TABLE IF EXISTS test_character_lengths')
|
|
1207
|
+
self.cur.execute(rf'''
|
|
1208
|
+
CREATE TABLE `test_character_lengths_{tbl_id}` (
|
|
1209
|
+
`id` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
|
1210
|
+
`char_col` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
|
1211
|
+
`int_col` INT,
|
|
1212
|
+
PRIMARY KEY (`id`),
|
|
1213
|
+
SORT KEY `id` (`id`)
|
|
1214
|
+
) AUTOSTATS_CARDINALITY_MODE=INCREMENTAL
|
|
1215
|
+
AUTOSTATS_HISTOGRAM_MODE=CREATE
|
|
1216
|
+
AUTOSTATS_SAMPLING=ON
|
|
1217
|
+
SQL_MODE='STRICT_ALL_TABLES'
|
|
1218
|
+
''')
|
|
1219
|
+
|
|
1220
|
+
CHAR_STR_SHORT = 'a'
|
|
1221
|
+
CHAR_STR_LONG = 'a' * (2**8-1)
|
|
1222
|
+
SHORT_STR_SHORT = 'a' * ((2**8-1) + 1)
|
|
1223
|
+
SHORT_STR_LONG = 'a' * (2**16-1)
|
|
1224
|
+
INT24_STR_SHORT = 'a' * ((2**16-1) + 1)
|
|
1225
|
+
INT24_STR_LONG = 'a' * (2**24-1)
|
|
1226
|
+
INT64_STR_SHORT = 'a' * ((2**24-1) + 1)
|
|
1227
|
+
INT64_STR_LONG = 'a' * ((2**24-1) + 100000)
|
|
1228
|
+
|
|
1229
|
+
data = [
|
|
1230
|
+
['CHAR_SHORT', CHAR_STR_SHORT, 123456],
|
|
1231
|
+
['CHAR_LONG', CHAR_STR_LONG, 123456],
|
|
1232
|
+
['SHORT_SHORT', SHORT_STR_SHORT, 123456],
|
|
1233
|
+
['SHORT_LONG', SHORT_STR_LONG, 123456],
|
|
1234
|
+
['INT24_SHORT', INT24_STR_SHORT, 123456],
|
|
1235
|
+
['INT24_LONG', INT24_STR_LONG, 123456],
|
|
1236
|
+
['INT64_SHORT', INT64_STR_SHORT, 123456],
|
|
1237
|
+
['INT64_LONG', INT64_STR_LONG, 123456],
|
|
1238
|
+
]
|
|
1239
|
+
|
|
1240
|
+
self.cur.executemany(
|
|
1241
|
+
f'INSERT INTO test_character_lengths_{tbl_id}(id, char_col, int_col) '
|
|
1242
|
+
'VALUES (%s, %s, %s)', data,
|
|
1243
|
+
)
|
|
1244
|
+
|
|
1245
|
+
for i, row in enumerate(data):
|
|
1246
|
+
self.cur.execute(
|
|
1247
|
+
f'SELECT id, char_col, int_col FROM test_character_lengths_{tbl_id} '
|
|
1248
|
+
'WHERE id = %s',
|
|
1249
|
+
[row[0]],
|
|
1250
|
+
)
|
|
1251
|
+
assert data[i] == list(list(self.cur)[0])
|
|
1252
|
+
|
|
1253
|
+
try:
|
|
1254
|
+
self.cur.execute(f'DROP TABLE test_character_lengths_{tbl_id}')
|
|
1255
|
+
except Exception:
|
|
1256
|
+
pass
|
|
1257
|
+
|
|
1200
1258
|
|
|
1201
1259
|
if __name__ == '__main__':
|
|
1202
1260
|
import nose2
|
|
@@ -685,7 +685,8 @@ class TestJobsFusion(unittest.TestCase):
|
|
|
685
685
|
'Status', 'ScheduledStartTime', 'StartedAt', 'FinishedAt',
|
|
686
686
|
]
|
|
687
687
|
exec_job_ids = [x[2] for x in out]
|
|
688
|
-
|
|
688
|
+
for x in exec_job_ids:
|
|
689
|
+
assert x == job_id
|
|
689
690
|
|
|
690
691
|
# show executions for job with id job_id from 1 to 5 extended
|
|
691
692
|
self.cur.execute(f'show job executions for {job_id} from 1 to 5 extended')
|
|
@@ -698,7 +699,8 @@ class TestJobsFusion(unittest.TestCase):
|
|
|
698
699
|
'SnapshotNotebookPath',
|
|
699
700
|
]
|
|
700
701
|
exec_job_ids = [x[2] for x in out]
|
|
701
|
-
|
|
702
|
+
for x in exec_job_ids:
|
|
703
|
+
assert x == job_id
|
|
702
704
|
|
|
703
705
|
# drop job
|
|
704
706
|
self.cur.execute(f'drop jobs {job_id}')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: singlestoredb
|
|
3
|
-
Version: 1.6.
|
|
3
|
+
Version: 1.6.2
|
|
4
4
|
Summary: Interface to the SingleStoreDB database and workspace management APIs
|
|
5
5
|
Home-page: https://github.com/singlestore-labs/singlestoredb-python
|
|
6
6
|
Author: SingleStore
|
|
@@ -21,25 +21,25 @@ Requires-Dist: requests
|
|
|
21
21
|
Requires-Dist: setuptools
|
|
22
22
|
Requires-Dist: sqlparams
|
|
23
23
|
Requires-Dist: wheel
|
|
24
|
-
Requires-Dist: tomli
|
|
24
|
+
Requires-Dist: tomli>=1.1.0; python_version < "3.11"
|
|
25
25
|
Provides-Extra: dataframe
|
|
26
|
-
Requires-Dist: ibis-singlestoredb
|
|
26
|
+
Requires-Dist: ibis-singlestoredb; extra == "dataframe"
|
|
27
27
|
Provides-Extra: dbt
|
|
28
|
-
Requires-Dist: dbt-singlestore
|
|
28
|
+
Requires-Dist: dbt-singlestore; extra == "dbt"
|
|
29
29
|
Provides-Extra: ed22519
|
|
30
|
-
Requires-Dist: PyNaCl
|
|
30
|
+
Requires-Dist: PyNaCl>=1.4.0; extra == "ed22519"
|
|
31
31
|
Provides-Extra: gssapi
|
|
32
|
-
Requires-Dist: gssapi
|
|
32
|
+
Requires-Dist: gssapi; extra == "gssapi"
|
|
33
33
|
Provides-Extra: ibis
|
|
34
|
-
Requires-Dist: ibis-singlestoredb
|
|
34
|
+
Requires-Dist: ibis-singlestoredb; extra == "ibis"
|
|
35
35
|
Provides-Extra: kerberos
|
|
36
|
-
Requires-Dist: gssapi
|
|
36
|
+
Requires-Dist: gssapi; extra == "kerberos"
|
|
37
37
|
Provides-Extra: pytest
|
|
38
|
-
Requires-Dist: pytest
|
|
38
|
+
Requires-Dist: pytest; extra == "pytest"
|
|
39
39
|
Provides-Extra: rsa
|
|
40
|
-
Requires-Dist: cryptography
|
|
40
|
+
Requires-Dist: cryptography; extra == "rsa"
|
|
41
41
|
Provides-Extra: sqlalchemy
|
|
42
|
-
Requires-Dist: sqlalchemy-singlestoredb
|
|
42
|
+
Requires-Dist: sqlalchemy-singlestoredb>=1.0.0; extra == "sqlalchemy"
|
|
43
43
|
|
|
44
44
|
# <img src="https://github.com/singlestore-labs/singlestoredb-python/blob/main/resources/singlestore-logo.png" height="60" valign="middle"/> SingleStoreDB Python SDK
|
|
45
45
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
singlestoredb/__init__.py,sha256=
|
|
1
|
+
singlestoredb/__init__.py,sha256=k-LJN-GeJeTKCSDSlMPr4-mM2_k1vOO643_TA8IyyOs,1634
|
|
2
2
|
singlestoredb/auth.py,sha256=u8D9tpKzrqa4ssaHjyZnGDX1q8XBpGtuoOkTkSv7B28,7599
|
|
3
3
|
singlestoredb/config.py,sha256=0qU2lweqHIA5yuV0ZN_JS-cZCfLIxIHutgS2YKRuwXw,12067
|
|
4
4
|
singlestoredb/connection.py,sha256=Gzq38vG8lXTx5v2WvHkdMg-abSTS6lguTsVMxbYHZmQ,45306
|
|
@@ -90,14 +90,14 @@ singlestoredb/tests/empty.sql,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
|
90
90
|
singlestoredb/tests/local_infile.csv,sha256=sBtqjvfkS9aoOVx8nMXYgYv4rDuT4OuYhqUhNRu0O68,42
|
|
91
91
|
singlestoredb/tests/test.sql,sha256=dfMehVCQ9wObSVTQKyQi-fRFDZeqRxV4Cj8doBCPEFM,17679
|
|
92
92
|
singlestoredb/tests/test2.sql,sha256=D4U2GSlOVeo39U8-RMM4YziJzYFfi4Ztm2YXJVJVAS8,37
|
|
93
|
-
singlestoredb/tests/test_basics.py,sha256=
|
|
93
|
+
singlestoredb/tests/test_basics.py,sha256=1__lEF7FmQF4_pFi5R53TtJidtQznmQ592Ci6aDVgrc,46368
|
|
94
94
|
singlestoredb/tests/test_config.py,sha256=63lyIQ2KrvGE6C9403B_4Mc90mX4tp42ys5Bih2sXrE,11184
|
|
95
95
|
singlestoredb/tests/test_connection.py,sha256=ZmhnECusipQAuc6bfZOfMMZULrtxUhnxjxNNSSi6xH4,117697
|
|
96
96
|
singlestoredb/tests/test_dbapi.py,sha256=IKq5Hcwx8WikASP8_AB5fo3TXv7ryWPCVGonoly00gI,652
|
|
97
97
|
singlestoredb/tests/test_exceptions.py,sha256=tfr_8X2w1UmG4nkSBzWGB0C7ehrf1GAVgj6_ODaG-TM,1131
|
|
98
98
|
singlestoredb/tests/test_ext_func.py,sha256=OWd-CJ1Owhx72nikSWWEF2EQFCJk7vEXZM2Oy9EbYQo,37357
|
|
99
99
|
singlestoredb/tests/test_ext_func_data.py,sha256=yTADD93nPxX6_rZXXLZaOWEI_yPvYyir9psn5PK9ctU,47695
|
|
100
|
-
singlestoredb/tests/test_fusion.py,sha256=
|
|
100
|
+
singlestoredb/tests/test_fusion.py,sha256=W3aRfBeu8HBGm1CIQWFIeWUPBUlfHBCbJy8vejPHdRs,23828
|
|
101
101
|
singlestoredb/tests/test_http.py,sha256=RXasTqBWRn__omj0eLFTJYIbZjd0PPdIV2d4Cqz0MC8,8580
|
|
102
102
|
singlestoredb/tests/test_management.py,sha256=89hKu82qiH1YTbLzKl5FOPEapNB5qo8k06d3fkoYajc,34304
|
|
103
103
|
singlestoredb/tests/test_plugin.py,sha256=qpO9wmWc62VaijN1sJ97YSYIX7I7Y5C6sY-WzwrutDQ,812
|
|
@@ -116,9 +116,9 @@ singlestoredb/utils/events.py,sha256=9IB84T3pKQjs7aaoSSJCw7soNngnhoTDWIC52M51R9Y
|
|
|
116
116
|
singlestoredb/utils/mogrify.py,sha256=-a56IF70U6CkfadeaZgfjRSVsAD3PuqRrzPpjZlgbwY,4050
|
|
117
117
|
singlestoredb/utils/results.py,sha256=bJtaUaDiFq26IsPAKZ2FHGB7csMn94EAxLKrP4HaEEA,15277
|
|
118
118
|
singlestoredb/utils/xdict.py,sha256=S9HKgrPrnu_6b7iOwa2KrW8CmU1Uqx0BWdEyogFzWbE,12896
|
|
119
|
-
singlestoredb-1.6.
|
|
120
|
-
singlestoredb-1.6.
|
|
121
|
-
singlestoredb-1.6.
|
|
122
|
-
singlestoredb-1.6.
|
|
123
|
-
singlestoredb-1.6.
|
|
124
|
-
singlestoredb-1.6.
|
|
119
|
+
singlestoredb-1.6.2.dist-info/LICENSE,sha256=Mlq78idURT-9G026aMYswwwnnrLcgzTLuXeAs5hjDLM,11341
|
|
120
|
+
singlestoredb-1.6.2.dist-info/METADATA,sha256=K8wvPnmdbQcQV7pvRJARTF7L_7f9sdYct2SVUyAOoE4,5557
|
|
121
|
+
singlestoredb-1.6.2.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
|
122
|
+
singlestoredb-1.6.2.dist-info/entry_points.txt,sha256=bSLaTWB5zGjpVYPAaI46MkkDup0su-eb3uAhCNYuRV0,48
|
|
123
|
+
singlestoredb-1.6.2.dist-info/top_level.txt,sha256=eet8bVPNRqiGeY0PrO5ERH2UpamwlrKHEQCffz4dOh8,14
|
|
124
|
+
singlestoredb-1.6.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|