We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b21b735 commit f01eeafCopy full SHA for f01eeaf
tests/test_conn_cursor.py
@@ -20,6 +20,21 @@ def test_conn_query_without_receiving_result(self):
20
conn.query("SELECT 1", "Null")
21
conn.close()
22
23
+ def test_conn_query_df_and_arrowtable(self):
24
+ conn = connect()
25
+ ret = conn.query("SELECT 123 as x", "DataFrame")
26
+ self.assertEqual(ret.x[0], 123)
27
+
28
+ ret = conn.query("SELECT 123 as x", "ArrowTable")
29
+ self.assertEqual(
30
+ str(ret),
31
+ """pyarrow.Table
32
+x: uint8 not null
33
+----
34
+x: [[123]]""",
35
+ )
36
+ conn.close()
37
38
def test_basic_operations(self):
39
conn = connect(":memory:")
40
cursor = conn.cursor()
0 commit comments