如何获取输入文件大小作为 AWS Athena 外部表中的列

Oza*_*sel 6 amazon-athena

我知道如何通过伪列获取文件的路径,例如:

select "$path" from table
Run Code Online (Sandbox Code Playgroud)

但我也想把文件大小放在旁边,可以吗?提前致谢。

Ori*_*i N 1

It is possible to use attributes on the source files like file size and file modified time:

SELECT "$path", "$file_size", "$file_modified_time"
FROM my_table
LIMIT 10
Run Code Online (Sandbox Code Playgroud)