我正在尝试运行查询以查找 double 类型的列的最大值,这给了我这个错误
Could not Infer the matching function for org.apache.builtin.MAX as multiple or none of them fit . Please use am explicit cast.
我的数据结构如下:
maxtest: {name: chararray, value: double}
最佳答案
查看异常,我可以告诉您您没有将期望的数据类型传递给MAX函数。它应该是数字类型,请检查并尝试使用该列的新数据类型。
关于java - 无法在Pig中使用最大值和求和函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28941956/