chdb 3.0.0__cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl → 3.1.0__cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.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 chdb might be problematic. Click here for more details.

chdb/__init__.py CHANGED
@@ -19,7 +19,7 @@ _process_result_format_funs = {
19
19
  # UDF script path will be f"{g_udf_path}/{func_name}.py"
20
20
  g_udf_path = ""
21
21
 
22
- chdb_version = ('3', '0', '0')
22
+ chdb_version = ('3', '1', '0')
23
23
  if sys.version_info[:2] >= (3, 7):
24
24
  # get the path of the current file
25
25
  current_path = os.path.dirname(os.path.abspath(__file__))
Binary file
chdb/dbapi/converters.py CHANGED
@@ -59,6 +59,7 @@ def escape_float(value, mapping=None):
59
59
 
60
60
  _escape_table = [chr(x) for x in range(128)]
61
61
  _escape_table[ord("'")] = u"''"
62
+ _escape_table[ord("\\")] = "\\\\"
62
63
 
63
64
 
64
65
  def _escape_unicode(value, mapping=None):
chdb/session/state.py CHANGED
@@ -51,7 +51,7 @@ class Session:
51
51
  )
52
52
  g_session.close()
53
53
  g_session_path = None
54
- if path is None:
54
+ if path is None or ":memory:" in path:
55
55
  self._cleanup = True
56
56
  self._path = tempfile.mkdtemp()
57
57
  else:
@@ -89,6 +89,9 @@ class Session:
89
89
  if self._conn is not None:
90
90
  self._conn.close()
91
91
  self._conn = None
92
+ global g_session, g_session_path
93
+ g_session = None
94
+ g_session_path = None
92
95
 
93
96
  def cleanup(self):
94
97
  try:
@@ -96,6 +99,9 @@ class Session:
96
99
  self._conn.close()
97
100
  self._conn = None
98
101
  shutil.rmtree(self._path)
102
+ global g_session, g_session_path
103
+ g_session = None
104
+ g_session_path = None
99
105
  except: # noqa
100
106
  pass
101
107
 
chdb/state/sqlitelike.py CHANGED
@@ -21,7 +21,7 @@ class Connection:
21
21
  self._cursor = Cursor(self._conn)
22
22
  return self._cursor
23
23
 
24
- def query(self, query: str, format: str = "ArrowStream") -> Any:
24
+ def query(self, query: str, format: str = "CSV") -> Any:
25
25
  return self._conn.query(query, format)
26
26
 
27
27
  def close(self) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: chdb
3
- Version: 3.0.0
3
+ Version: 3.1.0
4
4
  Summary: chDB is an in-process SQL OLAP Engine powered by ClickHouse
5
5
  Home-page: https://github.com/chdb-io/chdb
6
6
  Author: auxten
@@ -1,28 +1,28 @@
1
- chdb/__main__.py,sha256=xNNtDY38d973YM5dlxiIazcqqKhXJSpNb7JflyyrXGE,1185
2
- chdb/__init__.py,sha256=YbIz0MIa1GMe8c4ZIhidKWk0Y9aYlxRjEmL48_WkGxo,3762
1
+ chdb/__init__.py,sha256=P2TgVZoELhpe-zVd_HLI9jlotBpIbtrjA5Cgi64Ap-M,3762
3
2
  chdb/rwabc.py,sha256=tbiwCrXirfrfx46wCJxS64yvFe6pVWIPGdSuvrAL5Ys,2102
4
- chdb/_chdb.cpython-38-aarch64-linux-gnu.so,sha256=BUjAk9o9Yw-HwzZCHoITK0uPCHv3rJx4uQSQY_-fcrg,533372568
5
- chdb/session/__init__.py,sha256=fCUROZ5L1-92o2lcASiWJpFu-80-kDoSrNfouLEmLg8,50
6
- chdb/session/state.py,sha256=rUxs6nOpnnvWIOeiXhp2jORlL54HNFQKcXKFbHIHH40,4134
7
- chdb/utils/trace.py,sha256=W-pvDoKlnzq6H_7FiWjr5_teN40UNE4E5--zbUrjOIc,2511
8
- chdb/utils/types.py,sha256=MGLFIjoDvu7Uc2Wy8EDY60jjue66HmMPxbhrujjrZxQ,7530
3
+ chdb/_chdb.cpython-38-aarch64-linux-gnu.so,sha256=s_V7Q_90yI-VcOBGL2IK4ZCbL55wRRxmP1omRAka-C4,533362416
4
+ chdb/__main__.py,sha256=xNNtDY38d973YM5dlxiIazcqqKhXJSpNb7JflyyrXGE,1185
9
5
  chdb/utils/__init__.py,sha256=tXRcwBRGW2YQNBZWV4Mitw5QlCu_qlSRCjllw15XHbs,171
6
+ chdb/utils/types.py,sha256=MGLFIjoDvu7Uc2Wy8EDY60jjue66HmMPxbhrujjrZxQ,7530
7
+ chdb/utils/trace.py,sha256=W-pvDoKlnzq6H_7FiWjr5_teN40UNE4E5--zbUrjOIc,2511
8
+ chdb/udf/__init__.py,sha256=qSMaPEre7w1pYz8uJ-iZtuu8wYOUNRcI_8UNuaOymGE,80
9
+ chdb/udf/udf.py,sha256=z0A1RmyZrx55bykpvvS-LpVt1lMrQOexjvU5zxCdCSA,3935
10
+ chdb/session/__init__.py,sha256=fCUROZ5L1-92o2lcASiWJpFu-80-kDoSrNfouLEmLg8,50
11
+ chdb/session/state.py,sha256=nx9KlqZyPTHAflToXCJVRBUSMjJFvyh6x2akP7Gc7h0,4360
12
+ chdb/state/__init__.py,sha256=RVUIWDqDi7gte4Os7Mz1wPXFyFpdHT_p1klJC7QtluI,55
13
+ chdb/state/sqlitelike.py,sha256=-2bQRs6WDREr90pe8UtaYbQK-BWSkko1Ma8cLSzLUf4,4511
14
+ chdb/dataframe/__init__.py,sha256=1_mrZZiJwqBTnH_P8_FCbbYXIWWY5sxnaFpe3-tDLF4,680
15
+ chdb/dataframe/query.py,sha256=ggvE8A5vtabFg9gSTp99S7LCrnIEwbWtb-PtJVT8Ct0,12759
16
+ chdb/dbapi/__init__.py,sha256=aaNhxXNBC1ZkFr260cbGR8msOinTp0VoNTT_j8AXGUc,2205
10
17
  chdb/dbapi/err.py,sha256=kUI9-A8LNqBoMoo4jh2NFsLCOLoPEwh9YIuz_qMoLoM,2017
11
18
  chdb/dbapi/cursors.py,sha256=OXF36raoyI3MIC5SCQ5IvnCtbOnppga4Q1IKOt2EIsk,7920
12
- chdb/dbapi/connections.py,sha256=4RBO0h-B149xEicE8cXSSJl9wpXa4FQMY_4SghgEvCw,2762
13
- chdb/dbapi/__init__.py,sha256=aaNhxXNBC1ZkFr260cbGR8msOinTp0VoNTT_j8AXGUc,2205
19
+ chdb/dbapi/converters.py,sha256=0SDqgixUTCz0LtWke_HHzgF1lFJhpsQrR_-ky3b-JRY,7447
14
20
  chdb/dbapi/times.py,sha256=_qXgDaYwsHntvpIKSKXp1rrYIgtq6Z9pLyLnO2XNoL0,360
15
- chdb/dbapi/converters.py,sha256=qS9k0Kzo_vDQxnFtsJ_3pLjlTrBK09SfdWcXdxzIrtI,7413
21
+ chdb/dbapi/connections.py,sha256=4RBO0h-B149xEicE8cXSSJl9wpXa4FQMY_4SghgEvCw,2762
16
22
  chdb/dbapi/constants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
23
  chdb/dbapi/constants/FIELD_TYPE.py,sha256=ytFzgAnGmb9hvdsBlnK68qdZv_a6jYFIXT6VSAb60z8,370
18
- chdb/state/sqlitelike.py,sha256=AywMiyNNkfCyyeemMFmf5ZA5MEGtdc00L7O-LMYeU_8,4519
19
- chdb/state/__init__.py,sha256=RVUIWDqDi7gte4Os7Mz1wPXFyFpdHT_p1klJC7QtluI,55
20
- chdb/udf/__init__.py,sha256=qSMaPEre7w1pYz8uJ-iZtuu8wYOUNRcI_8UNuaOymGE,80
21
- chdb/udf/udf.py,sha256=z0A1RmyZrx55bykpvvS-LpVt1lMrQOexjvU5zxCdCSA,3935
22
- chdb/dataframe/__init__.py,sha256=1_mrZZiJwqBTnH_P8_FCbbYXIWWY5sxnaFpe3-tDLF4,680
23
- chdb/dataframe/query.py,sha256=ggvE8A5vtabFg9gSTp99S7LCrnIEwbWtb-PtJVT8Ct0,12759
24
- chdb-3.0.0.dist-info/WHEEL,sha256=kXl2s4Qckbq-p8Z4uiL35quKbwl-GQoXbtqNVM-5MKM,149
25
- chdb-3.0.0.dist-info/LICENSE.txt,sha256=isYVtNCO5910aj6e9bJJ6kQceivkLqsMlFSNYwzGGKI,11366
26
- chdb-3.0.0.dist-info/METADATA,sha256=ekCEW8pR9XmbU1Nn03dqfGzgDKYmC3heozeNVuAzWgo,19444
27
- chdb-3.0.0.dist-info/RECORD,,
28
- chdb-3.0.0.dist-info/top_level.txt,sha256=se0Jj0A2-ijfMW51hIjiuNyDJPqy5xJU1G8a_IEdllI,11
24
+ chdb-3.1.0.dist-info/WHEEL,sha256=kXl2s4Qckbq-p8Z4uiL35quKbwl-GQoXbtqNVM-5MKM,149
25
+ chdb-3.1.0.dist-info/top_level.txt,sha256=se0Jj0A2-ijfMW51hIjiuNyDJPqy5xJU1G8a_IEdllI,11
26
+ chdb-3.1.0.dist-info/LICENSE.txt,sha256=isYVtNCO5910aj6e9bJJ6kQceivkLqsMlFSNYwzGGKI,11366
27
+ chdb-3.1.0.dist-info/METADATA,sha256=f20AXTJEQn9hegYIUOjY3y6pFCpT3mp8yUU_vkJ8mXw,19444
28
+ chdb-3.1.0.dist-info/RECORD,,
File without changes