@@ -91,7 +91,7 @@ func TestSelect_WithDataFrame_SelectOnlyExpectedFields(t *testing.T) {
91
91
"age" : IntType ,
92
92
},
93
93
}
94
- sdf := core .NewStreamDataFrame (input , output , errors , schema )
94
+ sdf := core .NewStreamDataFrame (input , output , errors , schema , "test-stream" )
95
95
96
96
// Logic to test
97
97
result_df := sdf .Select ("first_name" , "age" )
@@ -140,20 +140,29 @@ func TestSelect_WithDataFrame_SelectOnlyExpectedFields(t *testing.T) {
140
140
"first_name" : String {Val : "random_name" },
141
141
"age" : Integer {Val : 10 },
142
142
},
143
+ Metadata : Metadata {
144
+ Stream : "test-stream" ,
145
+ },
143
146
},
144
147
{
145
148
Key : "key2" ,
146
149
Data : ValueMap {
147
150
"first_name" : String {Val : "foobar" },
148
151
"age" : Integer {Val : 20 },
149
152
},
153
+ Metadata : Metadata {
154
+ Stream : "test-stream" ,
155
+ },
150
156
},
151
157
{
152
158
Key : "key3" ,
153
159
Data : ValueMap {
154
160
"first_name" : String {Val : "random_name2" },
155
161
"age" : Integer {Val : 30 },
156
162
},
163
+ Metadata : Metadata {
164
+ Stream : "test-stream" ,
165
+ },
157
166
},
158
167
}
159
168
@@ -187,7 +196,7 @@ func TestSelect_SelectInvalidColumnName_PanicsWithColumnNotFound(t *testing.T) {
187
196
"age" : IntType ,
188
197
},
189
198
}
190
- sdf := core .NewStreamDataFrame (input , output , errors , schema )
199
+ sdf := core .NewStreamDataFrame (input , output , errors , schema , "test-stream" )
191
200
192
201
assert .Panicsf (t ,
193
202
func () {
@@ -212,7 +221,7 @@ func TestSelect_FirstFilterThenSelect_ShouldSuccessfullyFilterRecordsThenSelect(
212
221
"age" : IntType ,
213
222
},
214
223
}
215
- sdf := core .NewStreamDataFrame (input , output , errors , schema )
224
+ sdf := core .NewStreamDataFrame (input , output , errors , schema , "test-stream" )
216
225
217
226
result_df := sdf .Filter (functions.Filter {
218
227
ColumnName : "first_name" ,
@@ -263,6 +272,9 @@ func TestSelect_FirstFilterThenSelect_ShouldSuccessfullyFilterRecordsThenSelect(
263
272
"last_name" : String {Val : "bar" },
264
273
"age" : Integer {Val : 10 },
265
274
},
275
+ Metadata : Metadata {
276
+ Stream : "test-stream" ,
277
+ },
266
278
}
267
279
result := <- output
268
280
assert .Equal (t , result , accepted_record )
0 commit comments