0

我已将数据转储到镶木地板文件中。当我使用

SELECT * FROM s3object s LIMIT 1

它给了我以下结果。

 {
    "name": "John",
    "age": "45",
    "country": "USA",
    "experience": [{
            "company": {
                "name": "ABC",
                "years": "10",
                "position": "Manager"
            }
        },
        {
            "company": {
                "name": "BBC",
                "years": "2",
                "position": "Assistant"
            }
        }
    ]
}

我想过滤 company.name = "ABC" 的结果,所以输出应该如下所示。

{
    "name": "John",
    "age": "45",
    "country": "USA",
    "experience": [{
            "company": {
                "name": "ABC",
                "years": "10",
                "position": "Manager"
            }
        }
    ]
}

或这个

{
    "name": "John",
    "age": "45",
    "country": "USA",
    "experience.company.name": "ABC",
    "experience.company.years": "10",
    "experience.company.position": "Manager"
}

非常感谢任何支持。谢谢。

4

0 回答 0