forked from feldera/feldera
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_int_table.py
More file actions
114 lines (105 loc) · 2.84 KB
/
Copy pathtest_int_table.py
File metadata and controls
114 lines (105 loc) · 2.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
from .aggtst_base import TstTable
class aggtst_int_table(TstTable):
"""Define the table used by some integer tests"""
def __init__(self):
self.sql = """CREATE TABLE int_tbl(
id INT, c1 INT, c2 INT NOT NULL)"""
self.data = [
{"id": 0, "c1": None, "c2": 20},
{"id": 1, "c1": 11, "c2": 22},
{"id": 0, "c1": 1, "c2": 2},
]
class aggtst_int0_table(TstTable):
def __init__(self):
self.sql = """CREATE TABLE int0_tbl(
id INT NOT NULL,
c1 TINYINT,
c2 TINYINT NOT NULL,
c3 INT2,
c4 INT2 NOT NULL,
c5 INT,
c6 INT NOT NULL,
c7 BIGINT,
c8 BIGINT NOT NULL)"""
self.data = [
{
"id": 0,
"c1": 5,
"c2": 2,
"c3": None,
"c4": 4,
"c5": 5,
"c6": 6,
"c7": None,
"c8": 8,
},
{
"id": 1,
"c1": 4,
"c2": 3,
"c3": 4,
"c4": 6,
"c5": 2,
"c6": 3,
"c7": 4,
"c8": 2,
},
{
"id": 0,
"c1": None,
"c2": 2,
"c3": 3,
"c4": 2,
"c5": 3,
"c6": 4,
"c7": 3,
"c8": 3,
},
{
"id": 1,
"c1": None,
"c2": 5,
"c3": 6,
"c4": 2,
"c5": 2,
"c6": 1,
"c7": None,
"c8": 5,
},
]
class aggtst_int_stddev_table(TstTable):
def __init__(self):
self.sql = """CREATE TABLE stddev_tbl(
id INT NOT NULL,
c1 TINYINT,
c2 TINYINT NOT NULL,
c3 INT2,
c4 INT2 NOT NULL,
c5 INT,
c6 INT NOT NULL,
c7 BIGINT,
c8 BIGINT NOT NULL)"""
self.data = [
{
"id": 0,
"c1": 5,
"c2": 2,
"c3": None,
"c4": 4,
"c5": 5,
"c6": 6,
"c7": None,
"c8": 8,
},
{
"id": 1,
"c1": 4,
"c2": 3,
"c3": 4,
"c4": 6,
"c5": 2,
"c6": 3,
"c7": 4,
"c8": 2,
},
]