OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
tests.test_results_set.TestRowResults Class Reference

Public Member Functions

def test_nulls_handled
 

Detailed Description

Definition at line 12 of file test_results_set.py.

Member Function Documentation

def tests.test_results_set.TestRowResults.test_nulls_handled (   self)

Definition at line 13 of file test_results_set.py.

References heavydb.cursor.make_row_results_set().

13 
14  def test_nulls_handled(self):
15 
16  rs = TQueryResult(
17  TRowSet(
18  row_desc=[
19  TColumnType(
20  col_name='a', col_type=TTypeInfo(type=0, nullable=True)
21  ),
22  TColumnType(
23  col_name='b', col_type=TTypeInfo(type=1, nullable=True)
24  ),
25  TColumnType(
26  col_name='c', col_type=TTypeInfo(type=2, nullable=True)
27  ),
28  TColumnType(
29  col_name='d', col_type=TTypeInfo(type=3, nullable=True)
30  ),
31  TColumnType(
32  col_name='e', col_type=TTypeInfo(type=4, nullable=True)
33  ),
34  TColumnType(
35  col_name='f', col_type=TTypeInfo(type=5, nullable=True)
36  ),
37  TColumnType(
38  col_name='g', col_type=TTypeInfo(type=6, nullable=True)
39  ),
40  TColumnType(
41  col_name='h', col_type=TTypeInfo(type=7, nullable=True)
42  ),
43  TColumnType(
44  col_name='i', col_type=TTypeInfo(type=8, nullable=True)
45  ),
46  TColumnType(
47  col_name='j', col_type=TTypeInfo(type=9, nullable=True)
48  ),
49  TColumnType(
50  col_name='k',
51  col_type=TTypeInfo(type=10, nullable=True),
52  ),
53  ],
54  rows=[],
55  columns=[
56  TColumn(
57  data=TColumnData(int_col=[-2147483648]), nulls=[True]
58  ),
59  TColumn(
60  data=TColumnData(int_col=[-2147483648]), nulls=[True]
61  ),
62  TColumn(
63  data=TColumnData(int_col=[-2147483648]), nulls=[True]
64  ),
65  TColumn(
66  data=TColumnData(real_col=[-2147483648]), nulls=[True]
67  ), # noqa
68  TColumn(
69  data=TColumnData(real_col=[-2147483648]), nulls=[True]
70  ), # noqa
71  TColumn(
72  data=TColumnData(real_col=[-2147483648]), nulls=[True]
73  ), # noqa
74  TColumn(
75  data=TColumnData(str_col=[-2147483648]), nulls=[True]
76  ),
77  TColumn(
78  data=TColumnData(int_col=[-2147483648]), nulls=[True]
79  ),
80  TColumn(
81  data=TColumnData(int_col=[-2147483648]), nulls=[True]
82  ),
83  TColumn(
84  data=TColumnData(int_col=[-2147483648]), nulls=[True]
85  ),
86  TColumn(
87  data=TColumnData(int_col=[-2147483648]), nulls=[True]
88  ),
89  ],
90  is_columnar=True,
91  )
92  )
93 
94  result = list(make_row_results_set(rs))
95  assert result == [(None,) * 11]
def make_row_results_set
Definition: cursor.py:179

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: