【问题标题】:How to s3-select all data within inner array of parquet file如何 s3-选择镶木地板文件内部数组中的所有数据
【发布时间】:2019-08-25 00:21:06
【问题描述】:

我在 s3 上有 parquet 文件,需要使用 S3 Select 进行查询。 Parquet 文件是从带有内部数组的 JSON 文件生成的。 S3 Select 查询可以获得第一个数组,但如果我尝试查询内部数组中的记录,则无法返回 ID。说它是一个无效的数据源

我尝试了什么:

Looking up documentation on Amazon proves no use
Multiple formats of the s3 select query

Json 结构

  {
     "Array": [
        {
          "Id": "1"
        },
        {
          "Id": "2"
        }
     ]
   }

查询

  select s.Array[*].id from s3object s

期望从查询中获取所有 id,因此应该返回 Id 1 和 2。

【问题讨论】:

    标签: amazon-s3 amazon-s3-select


    【解决方案1】:

    select s.Id from S3Object[*].Array[*] s limit 5 将返回数组中的所有 ID。

    【讨论】:

      猜你喜欢
      • 2017-11-02
      • 1970-01-01
      • 2019-04-24
      • 1970-01-01
      • 2018-06-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-22
      相关资源
      最近更新 更多