Hi all, I just read the databricks blog here: https://docs.databricks.com/_static/notebooks/complex-nested-structured.html <https://docs.databricks.com/_static/notebooks/complex-nested-structured.html>
When I try to follow the example about the to_json and selectExpr part, it gave error: “org.apache.spark.sql.AnalysisException: Undefined function: 'to_json'. This function is neither a registered temporary function nor a permanent function registered in the database 'default'.; line 1 pos 0”. Also this error show in the original databricks notebook. I know that to_json function works great with select. Do I miss something when using selectExpr? THX. Best, Matthew