gpt4 book ai didi

aws-cloudformation - AWS Glue+Athena 跳过标题行

转载 作者:行者123 更新时间:2023-12-02 15:00:49 33 4
gpt4 key购买 nike

截至January 19, 2018 updates , 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 表。使用Glue Table Input ,我如何告诉 Athena 跳过标题行?

最佳答案

基于 AWS::Glue::Table 的完整模板 here ,进行更改,

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

至,

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

成功了。

关于aws-cloudformation - AWS Glue+Athena 跳过标题行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49866197/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com