function is neither a registered temporary function nor a permanent function registered in the datab

Exception in thread “main” org.apache.spark.sql.AnalysisException: Undefined function: ‘group_concat_distinct’. This function is neither a registered temporary function nor a permanent function registered in the database ‘default’.; line 1 pos 44

这个是没有注册函数的原因

function is neither a registered temporary function nor a permanent function registered in the datab