How to resolve the error HIVE_INVALID_METADATA: Glue table 'ctr-db.11' column 'segmentattributes' has invalid data type: struct<connect\:Subtype:struct<ValueString:string>>

0

I have a CTR data in JSON format stored in s3 bucket which has the below column "SegmentAttributes": { "connect:Subtype": { "ValueString": "connect:Telephony" } } Due to the presence of ":" in "connect:Subtype" I see the below error HIVE_INVALID_METADATA: Glue table 'ctr-db.11' column 'segmentattributes' has invalid data type: struct<connect:Subtype:structValueString:string>

Athena query: SELECT * FROM "ctr-db"."11" limit 10;

How do I resolve the error if I wish to not modify the data? Can I ignore thus column?

1개 답변
0

I think it could be possible rename the struct field in the schema to avoid the issue, the that on that field won't be read but the query should run.

profile pictureAWS
전문가
답변함 5달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠