This adopts the newly implemented JNI function JSONUtils.fromJSONToStructs() to parse the input strings columns into a structs column, which is the case of calling from_json SQL function with struct schema. By replacing the Scala code entirely by native code, we can avoid a lot of overhead and optimize runtime performance.
This adopts the newly implemented JNI function
JSONUtils.fromJSONToStructs()
to parse the input strings columns into a structs column, which is the case of callingfrom_json
SQL function with struct schema. By replacing the Scala code entirely by native code, we can avoid a lot of overhead and optimize runtime performance.Closes https://github.com/NVIDIA/spark-rapids/issues/11560.
This will also close the following issues:
Depends on: