This is an automated email from the ASF dual-hosted git repository.

mbutrovich pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-comet.git


The following commit(s) were added to refs/heads/main by this push:
     new a0f3acf65a test: cover invalid unhex inputs in SQL file tests (#4890)
a0f3acf65a is described below

commit a0f3acf65aec3ee83554390bd7a610f36fcd43ca
Author: Andy Grove <[email protected]>
AuthorDate: Mon Jul 13 15:15:31 2026 -0600

    test: cover invalid unhex inputs in SQL file tests (#4890)
---
 spark/src/test/resources/sql-tests/expressions/string/unhex.sql | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/spark/src/test/resources/sql-tests/expressions/string/unhex.sql 
b/spark/src/test/resources/sql-tests/expressions/string/unhex.sql
index 0f31a880b3..757ada7969 100644
--- a/spark/src/test/resources/sql-tests/expressions/string/unhex.sql
+++ b/spark/src/test/resources/sql-tests/expressions/string/unhex.sql
@@ -19,7 +19,7 @@ statement
 CREATE TABLE test_unhex(s string) USING parquet
 
 statement
-INSERT INTO test_unhex VALUES ('537061726B2053514C'), ('41'), ('0A1B'), (''), 
(NULL), ('GG'), ('hello'), ('A1B')
+INSERT INTO test_unhex VALUES ('537061726B2053514C'), ('41'), ('0A1B'), (''), 
(NULL), ('GG'), ('hello'), ('A1B'), ('-123'), ('\0')
 
 query
 SELECT hex(unhex(s)) FROM test_unhex
@@ -30,3 +30,7 @@ SELECT unhex(s) IS NULL FROM test_unhex
 -- literal arguments
 query
 SELECT unhex('41'), unhex('GG'), unhex(''), unhex(NULL)
+
+-- invalid inputs: non-hex characters and the null character both return NULL
+query
+SELECT unhex('-123'), unhex('\0')


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to