mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Fix another test
This commit is contained in:
parent
e761532d7a
commit
46e1d05a89
@ -148,6 +148,11 @@ def test_string_functions(start_cluster):
|
||||
# 22.8 Backward Incompatible Change: Extended range of Date32
|
||||
"toDate32OrZero",
|
||||
"toDate32OrDefault",
|
||||
# 23.9 changed the base64-handling library from Turbo base64 to aklomp-base64. They differ in the way they deal with base64 values
|
||||
# that are not properly padded by '=', for example below test value v='foo'. (Depending on the specification/context, padding is
|
||||
# mandatory or optional). The former lib produces a value based on implicit padding, the latter lib throws an error.
|
||||
"FROM_BASE64",
|
||||
"base64Decode",
|
||||
]
|
||||
functions = filter(lambda x: x not in excludes, functions)
|
||||
|
||||
|
@ -22,6 +22,7 @@ foobar
|
||||
1 1
|
||||
1 1
|
||||
fooba
|
||||
~<7E>
|
||||
Zm9v
|
||||
foo
|
||||
foo
|
||||
|
@ -17,6 +17,9 @@ SELECT tryBase64Decode('foo', 'excess argument'); -- { serverError NUMBER_OF_ARG
|
||||
SELECT base64Decode('Zm9vYmF=Zm9v'); -- { serverError INCORRECT_DATA }
|
||||
SELECT tryBase64Decode('Zm9vYmF=Zm9v');
|
||||
|
||||
SELECT base64Decode('foo'); -- { serverError INCORRECT_DATA }
|
||||
SELECT tryBase64Decode('foo');
|
||||
|
||||
select base64Encode(toFixedString('foo', 3));
|
||||
select base64Decode(toFixedString('Zm9v', 4));
|
||||
select tryBase64Decode(toFixedString('Zm9v', 4));
|
||||
|
Loading…
Reference in New Issue
Block a user