Does AWS Glue support fixed-byte-length source data?

0

Hello. Can AWS Glue read source data file like below?

  20220101E00011000AAABBBCCC
  20220101E00021000あいCCC

The second record contains Japanese characters, and is the same byte length with the first record. The numbers of characters vary by record.

Thank you.

  • If the numbers of characters are the same by record, I can use Grok pattern like "(?<col0>.{6})(?<col1>.{2})..." when making a data catalog using crawler. But in this case, numbers differ, and bytes are the same. Can anyone tell AWS Glue does support/not support data set like this?

已提问 2 年前413 查看次数
1 回答
0
已接受的回答

Unfortunately parsing data by Bytes right now is not supported in glue. I observed your data is unstructured and the only way to parse that data is Grok SerDe or Regex SerDe but they parse data by identifying patterns so they are not feasible. I will recommend you to preprocess your data and then load them in glue.

unstructured data -> preprocessing using some Custom built parser function(csv) -> S3 -> crawl and createDatabase in glue.
AWS
支持工程师
Shubh
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则