File tree 1 file changed +5
-4
lines changed
datafusion/functions/src/unicode
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 15
15
// specific language governing permissions and limitations
16
16
// under the License.
17
17
18
- use std:: any:: Any ;
19
- use std:: sync:: Arc ;
20
- use std:: fmt:: Write ;
21
18
use crate :: utils:: { make_scalar_function, utf8_to_str_type} ;
22
19
use arrow:: array:: { ArrayRef , GenericStringBuilder , OffsetSizeTrait } ;
23
20
use arrow:: datatypes:: DataType ;
@@ -28,6 +25,9 @@ use datafusion_common::DataFusionError;
28
25
use datafusion_common:: { exec_err, Result } ;
29
26
use datafusion_expr:: TypeSignature :: Exact ;
30
27
use datafusion_expr:: { ColumnarValue , ScalarUDFImpl , Signature , Volatility } ;
28
+ use std:: any:: Any ;
29
+ use std:: fmt:: Write ;
30
+ use std:: sync:: Arc ;
31
31
use unicode_segmentation:: UnicodeSegmentation ;
32
32
33
33
#[ derive( Debug ) ]
@@ -143,7 +143,8 @@ macro_rules! process_rpad {
143
143
$builder. append_value( graphemes[ ..length] . concat( ) ) ;
144
144
} else {
145
145
$builder. write_str( string) ?;
146
- $builder. write_str( & " " . repeat( length - graphemes. len( ) ) ) ?;
146
+ $builder
147
+ . write_str( & " " . repeat( length - graphemes. len( ) ) ) ?;
147
148
$builder. append_value( "" ) ;
148
149
}
149
150
}
You can’t perform that action at this time.
0 commit comments