@@ -89,7 +89,7 @@ def test_read_raw_format_with_row_dispatcher(self, kikimr, client):
89
89
)
90
90
connections = client .list_connections (fq .Acl .Visibility .PRIVATE ).result .connection
91
91
assert len (connections ) == 1
92
- assert connections [0 ].content .setting .data_streams .shared_reading == True
92
+ assert connections [0 ].content .setting .data_streams .shared_reading is True
93
93
94
94
self .init_topics ("test_read_raw_format_without_row_dispatcher" , create_output = False )
95
95
output_topic = "pq_test_pq_read_write_output"
@@ -106,7 +106,7 @@ def test_read_raw_format_with_row_dispatcher(self, kikimr, client):
106
106
assert self .read_stream (len (data ), topic_path = output_topic ) == data
107
107
wait_actor_count (kikimr , "FQ_ROW_DISPATCHER_SESSION" , 1 )
108
108
stop_yds_query (client , query_id )
109
-
109
+
110
110
sql2 = Rf'''INSERT INTO { YDS_CONNECTION } .`{ output_topic } `
111
111
SELECT * FROM { YDS_CONNECTION } .`{ self .input_topic } ` WITH (format=raw, SCHEMA (data String NOT NULL))
112
112
WHERE data != "romashka";'''
@@ -155,7 +155,6 @@ def test_simple_not_null(self, kikimr, client):
155
155
wait_actor_count (kikimr , "FQ_ROW_DISPATCHER_SESSION" , 0 )
156
156
157
157
@yq_v1
158
- @pytest .mark .skip (reason = "Is not implemented" )
159
158
def test_simple_optional (self , kikimr , client ):
160
159
client .create_yds_connection (
161
160
YDS_CONNECTION , os .getenv ("YDB_DATABASE" ), os .getenv ("YDB_ENDPOINT" ), shared_reading = True
@@ -249,6 +248,9 @@ def test_nested_types(self, kikimr, client):
249
248
wait_actor_count (kikimr , "DQ_PQ_READ_ACTOR" , 1 )
250
249
stop_yds_query (client , query_id )
251
250
251
+ issues = str (client .describe_query (query_id ).result .query .transient_issue )
252
+ assert "Row dispatcher will use the predicate:" in issues , "Incorrect Issues: " + issues
253
+
252
254
@yq_v1
253
255
def test_filter (self , kikimr , client ):
254
256
client .create_yds_connection (
@@ -296,14 +298,16 @@ def test_filter_missing_fields(self, kikimr, client):
296
298
INSERT INTO { YDS_CONNECTION } .`{ self .output_topic } `
297
299
SELECT Cast(time as String) FROM { YDS_CONNECTION } .`{ self .input_topic } `
298
300
WITH (format=json_each_row, SCHEMA (time UInt64 NOT NULL, data String, event String NOT NULL))
299
- WHERE data = "" ;'''
301
+ WHERE data IS NULL ;'''
300
302
301
303
query_id = start_yds_query (kikimr , client , sql )
302
304
wait_actor_count (kikimr , "FQ_ROW_DISPATCHER_SESSION" , 1 )
303
305
304
306
data = [
305
307
'{"time": 101, "event": "event1"}' ,
306
308
'{"time": 102, "data": null, "event": "event2"}' ,
309
+ '{"time": 103, "data": "", "event": "event2"}' ,
310
+ '{"time": 104, "data": "null", "event": "event2"}' ,
307
311
]
308
312
309
313
self .write_stream (data )
@@ -313,6 +317,9 @@ def test_filter_missing_fields(self, kikimr, client):
313
317
wait_actor_count (kikimr , "DQ_PQ_READ_ACTOR" , 1 )
314
318
stop_yds_query (client , query_id )
315
319
320
+ issues = str (client .describe_query (query_id ).result .query .transient_issue )
321
+ assert "Row dispatcher will use the predicate:" in issues , "Incorrect Issues: " + issues
322
+
316
323
@yq_v1
317
324
def test_filter_use_unsupported_predicate (self , kikimr , client ):
318
325
client .create_yds_connection (
@@ -525,9 +532,9 @@ def test_stop_start_with_filter(self, kikimr, client):
525
532
client .create_yds_connection (
526
533
YDS_CONNECTION , os .getenv ("YDB_DATABASE" ), os .getenv ("YDB_ENDPOINT" ), shared_reading = True
527
534
)
528
- self .init_topics ("test_stop_start " , create_output = False )
535
+ self .init_topics ("test_stop_start_with_filter " , create_output = False )
529
536
530
- output_topic = "test_stop_start "
537
+ output_topic = "test_stop_start_with_filter "
531
538
create_stream (output_topic , partitions_count = 1 )
532
539
create_read_rule (output_topic , self .consumer_name )
533
540
0 commit comments