From bfe632c09bcce2a2b3016bbbdea1ed8c5971bb1c Mon Sep 17 00:00:00 2001 From: Yang Zhang Date: Thu, 14 Mar 2024 09:11:56 +0800 Subject: [PATCH] [VL] Verify unhex has been offloaded to native successfully (#4937) --- .../execution/VeloxFunctionsValidateSuite.scala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backends-velox/src/test/scala/io/glutenproject/execution/VeloxFunctionsValidateSuite.scala b/backends-velox/src/test/scala/io/glutenproject/execution/VeloxFunctionsValidateSuite.scala index 587492ef346aa..33f5e48adea5d 100644 --- a/backends-velox/src/test/scala/io/glutenproject/execution/VeloxFunctionsValidateSuite.scala +++ b/backends-velox/src/test/scala/io/glutenproject/execution/VeloxFunctionsValidateSuite.scala @@ -449,4 +449,10 @@ class VeloxFunctionsValidateSuite extends VeloxWholeStageTransformerSuite { checkOperatorMatch[ProjectExecTransformer] } } + + test("Test unhex function") { + runQueryAndCompare("SELECT unhex(hex(l_shipmode)) FROM lineitem limit 1") { + checkOperatorMatch[ProjectExecTransformer] + } + } }