我们如何在Spark中分解多个数组列?我有一个包含5个字符串化数组列的数据帧,我想在所有5列上进行分解。为了简单起见,用3列显示示例。from_json(subCategoryList, 'array<string>')) AS subCategoryList,...
from table 但这是不允许的,我得到了以下错误- Exception in thread "main" org.apache.spark.sql.AnalysisEx
在尝试在spark.sql查询期间应用我的自定义函数时,查询只返回一个看起来像我的数组的长字符串,而不是以数组的形式返回清理过的单词。在尝试应用CountVectorizer时,这会给我一个错误。它引发的错误是'requirement failed: Column cleanedWords must be of type equal to one of the following types:[ArrayType</