1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
When using the Amazon Athena UNLOAD command, it uses the default serializer LazySimpleSerDe. This serializer outputs empty values as Null, like you are experiencing, and cannot be changed.
One option is to specify each column in your select that you do not want to output to null and use a function to transform nulls. This would be instead of doing a SELECT *
.
For example:
UNLOAD (SELECT col1, COALESCE(col2,'') FROM table)
TO 's3://my_athena_data_location/my_folder/'
WITH (format = 'JSON')
References:
답변함 7달 전
관련 콘텐츠
- AWS 공식업데이트됨 2년 전
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 2년 전