Skip to content

Commit e8bd17f

Browse files
committed
fix
1 parent 6708ab9 commit e8bd17f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

datafusion/spark/src/function/math/unhex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use datafusion_common::cast::{
2222
};
2323
use datafusion_common::types::logical_string;
2424
use datafusion_common::utils::take_function_args;
25-
use datafusion_common::{exec_err, DataFusionError, Result, ScalarValue};
25+
use datafusion_common::{DataFusionError, Result, ScalarValue, exec_err};
2626
use datafusion_expr::{
2727
Coercion, ColumnarValue, ScalarFunctionArgs, ScalarUDFImpl, Signature,
2828
TypeSignatureClass, Volatility,

datafusion/sqllogictest/test_files/spark/math/unhex.slt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ abc
3939

4040
# Odd length hex (left pad with 0)
4141
query ?
42-
SELECT unhex(a) FROM VALUES ('1A2B3', '1', 'ABC', '123');
42+
SELECT unhex(a) FROM VALUES ('1A2B3'), ('1'), ('ABC'), ('123') AS t(a);
4343
----
4444
01a2b3
45-
1
46-
abc
47-
123
45+
01
46+
0abc
47+
0123
4848

4949
# Null input
5050
query ?

0 commit comments

Comments
 (0)