MCPcopy Create free account
hub / github.com/databendlabs/databend / test_basic_select

Function test_basic_select

tests/nox/python_client/test_basic.py:13–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12
13def test_basic_select():
14 client = BlockingDatabendClient(DATABEND_DSL)
15
16 cursor = client.cursor()
17 cursor.execute("SELECT * FROM numbers(10)")
18 rows = cursor.fetchall()
19 assert [row.values()[0] for row in rows] == [x for x in range(10)]
20 cursor.close()

Callers

nothing calls this directly

Calls 4

fetchallMethod · 0.80
executeMethod · 0.45
valuesMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…