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?

asked 2 years ago401 views
1 Answer
0
Accepted Answer

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
SUPPORT ENGINEER
Shubh
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions