Skip to content

Commit 62966a3

Browse files
bohutangKKould
authored andcommitted
fix(bendpy): remove CSV integration test that requires stage system
The embedded bendpy context does not have the system.stage table, so file-based queries (SELECT FROM 'fs://...') cannot work. Remove the integration test; SQL generation is already covered by mock tests in test_connections.py.
1 parent 1d1b8c9 commit 62966a3

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/bendpy/tests/test_basic.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
from databend import SessionContext
1717
import pandas as pd
1818
import polars
19-
import tempfile
20-
import os
2119

2220

2321
class TestBasic:
@@ -63,18 +61,3 @@ def test_create_insert_select(self):
6361
).to_polars()
6462
assert df.to_pandas().values.tolist() == [[90.0, "9", 9.0]]
6563

66-
def test_register_csv(self):
67-
with tempfile.NamedTemporaryFile(mode="w", suffix=".csv", delete=False) as f:
68-
f.write("name,age,city\n")
69-
f.write("Alice,30,NYC\n")
70-
f.write("Bob,25,LA\n")
71-
f.write("Charlie,35,Chicago\n")
72-
csv_path = f.name
73-
74-
try:
75-
self.ctx.register_csv("people", csv_path)
76-
df = self.ctx.sql("SELECT name, age, city FROM people ORDER BY age").to_pandas()
77-
assert df.values.tolist() == [["Bob", "25", "LA"], ["Alice", "30", "NYC"], ["Charlie", "35", "Chicago"]]
78-
finally:
79-
os.unlink(csv_path)
80-

0 commit comments

Comments
 (0)