You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add dictionary support to unhex and test dictionary and scalar cases #477
Right now unhex does not handle dictionary types. (Scalar is supported but we do not have tests)
Need to add tests for both dictionary and scalar types
Activity
kination commentedon Jul 29, 2025
@kazuyukitanimura sorry for question.
Is it meaning
unhexcannot decode correctly if value is dict? For example...it works well if source hex data is String such as
Spark, but it fails if it is{ "target": "spark" }-> Am I understanding correct?
kazuyukitanimura commentedon Jul 31, 2025
Thanks @kination
In the unhex test https://github.com/apache/datafusion-comet/blob/main/spark/src/test/scala/org/apache/comet/CometExpressionSuite.scala#L1433
We only have limited test cases.
You can use
makeParquetFileAllPrimitiveTypesto create test dictionary values and some random valuesThe test case with dictionary may fail because I do not see dictionary handling at https://github.com/apache/datafusion-comet/blob/main/native/spark-expr/src/math_funcs/unhex.rs#L67
It is possible the tests with dictionary still passes if we are unpacking in advance. But I forgot we are doing so
build: Use Iceberg branch apple-1.5.0.x for 3.4 (i.e. 3.4.3) (apache#477