felipepessoto commented on issue #4763:
URL:
https://github.com/apache/incubator-gluten/issues/4763#issuecomment-2138401401
@liujiayi771 do you know if collect_set is not expected to work with complex
types if the value is null? Example, this works with Spark, but doesn't work
when Gluten is enabled:
import org.apache.spark.sql.functions._
val jsonStr =
"""{"txn":{"appId":"txnId","version":0,"lastUpdated":null}}"""
val jsonSchema = StructType(Seq(StructField("txn",
StructType(Seq(StructField("appId",StringType,true),StructField("lastUpdated",LongType,true),StructField("version",LongType,true))),true
)))
val df =
spark.read.schema(jsonSchema).json(Seq(jsonStr).toDS).select(collect_set(col("txn")))
df.head
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]