File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,13 @@ def test_select_implicit_str(pool: ydb.QuerySessionPool):
33
33
assert expected_value == actual_value
34
34
35
35
36
+ def test_select_implicit_bytes (pool : ydb .QuerySessionPool ):
37
+ expected_value = b"text"
38
+ res = pool .execute_with_retries (query , parameters = {"$a" : expected_value })
39
+ actual_value = res [0 ].rows [0 ]["value" ]
40
+ assert expected_value == actual_value
41
+
42
+
36
43
def test_select_implicit_list (pool : ydb .QuerySessionPool ):
37
44
expected_value = [1 , 2 , 3 ]
38
45
res = pool .execute_with_retries (query , parameters = {"$a" : expected_value })
Original file line number Diff line number Diff line change @@ -307,6 +307,7 @@ def query_parameters_to_pb(parameters):
307
307
float : types .PrimitiveType .Double ,
308
308
bool : types .PrimitiveType .Bool ,
309
309
str : types .PrimitiveType .Utf8 ,
310
+ bytes : types .PrimitiveType .String ,
310
311
}
311
312
312
313
You can’t perform that action at this time.
0 commit comments