pub fn rpad_fill(s: &str, length: i32, fill: &str, writer: &mut impl Write)
Expand description
Extends the given string on the right until it is at least the specified length, using the specified fill string, truncating the string if it is already longer than the specified length.
ยงExample
query T
select rpad('hi', 5, 'xy');
----
hixyx
query T
select rpad('abc', 5, '๐');
----
abc๐๐
query T
select rpad('abcdef', 3, '0');
----
abc
query T
select rpad('hi', 5, '');
----
hi