AWS Glue + Athena跳过标题行 [英] AWS Glue+Athena skip header row

查看:127
本文介绍了AWS Glue + Athena跳过标题行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

截至 1月19日, 2018年更新,雅典娜可以跳过文件的标题行,

As of January 19, 2018 updates, Athena can skip the header row of files,


支持忽略标题。定义表时,可以使用 skip.header.line.count 属性,以允许Athena忽略标题。

Support for ignoring headers. You can use the skip.header.line.count property when defining tables, to allow Athena to ignore headers.

我使用 AWS Glue in Cloudformation 来管理我的Athena表。使用胶水表输入,如何告诉Athena跳过标题行?

I use AWS Glue in Cloudformation to manage my Athena tables. Using the Glue Table Input, how can I tell Athena to skip the header row?

推荐答案

基于的完整模板AWS :: Glue :: Table 在此处,从$ p进行更改b
$ b

Basing off the full template for AWS::Glue::Table here, making the change from,

Resources:
  ...
  MyGlueTable:
    ...
    Properties:
      ...
      TableInput:
        ...
        StorageDescriptor:
          ...
          SerdeInfo:
            Parameters: { "separatorChar" : "," }

收件人,

            Parameters:
              separatorChar : ","
              "skip.header.line.count" : 1

做到了。

这篇关于AWS Glue + Athena跳过标题行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆