S3 Select 无效路径组件

S3 Select Invalid Path component

我正在尝试弄清楚如何使用 AWS S3 Select,一切看起来都很简单,但下面的查询就是行不通:
select r.value from S3Object[*].outputs.private_subnets r
以上returnsInvalid Path component.

这是我正在使用的JSON:

{
    "outputs": {
        "private_subnets": {
            "value": [
                "subnet-1",
                "subnet-2",
                "subnet-3"
            ],
            "type": [
                "tuple",
                [
                    "string",
                    "string",
                    "string"
                ]
            ]
        },
        "public_subnets": {
            "value": [
                "subnet-1",
                "subnet-2",
                "subnet-3"
            ],
            "type": [
                "tuple",
                [
                    "string",
                    "string",
                    "string"
                ]
            ]
        },
        "vpc_id": {
            "value": "vpc-123",
            "type": "string"
        }
    }
}

就是没看懂错误,value是SQL中的一个特殊词吗?
到目前为止,这是我尝试过的方法:
select r from S3Object[*].outputs.private_subnets r:

{
    "r": {
        "value": [
            "subnet-1",
            "subnet-2",
            "subnet-3"
        ],
        "type": [
            "tuple",
            [
                "string",
                "string",
                "string"
            ]
        ]
    }
}

select r.type from S3Object[*].outputs.private_subnets r:

{
    "type": [
        "tuple",
        [
            "string",
            "string",
            "string"
        ]
    ]
}

所以我只是不明白value有什么问题。

您无法 select 因为 "value" 是保留关键字。 https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-glacier-select-sql-reference-keyword-list.html。这可以在值周围使用双引号进行转义。