Pyathena错误:无类型没有属性获取

问题描述

我正在编写一个python脚本,以从aws s3存储桶中导入数据。在某些机器上,它返回None类型没有属性get。 在调试pyathena时,我发现此错误来自util.py文件中的lambda表达式,位于以下函数中:

var t =[{
            "AC": "true","doj": "2020-11-20T00:00:00+05:30","fareDetails": [
                {
                    "basefare": "1033.00","srtFee": "0.0","tollFee": "0.0","totalfare": "1085.00"
                },{
                    "basefare": "1086.00","totalfare": "1140.00"
                },{
                    "basefare": "1190.00","totalfare": "1250.00"
                },{
                    "basefare": "1243.00","totalfare": "1305.00"
                }
            ],"fares": [
                "1250.00","1305.00","1140.00","1085.00"
            ],},{
            "AC": "true","fareDetails": [
                {
                    "basefare": "12.00",{
                    "basefare": "444.00",{
                    "basefare": "22.00",{
                    "basefare": "111.00",}]
var lowest =Math.min.apply(Math,t.flatMap(x=> x.fareDetails.map(x=>x.basefare)))
console.log(lowest)

有人知道吗?

谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)