我正在尝试使用 S3 的选择功能,但对于某些文件,我收到 OverMaxParquetBlockSize 错误。
我的选择非常简单:
r = s3.select_object_content(
Bucket='prod-bucket',
Key='810217_0',
ExpressionType='SQL',
Expression="select s.* from s3object s where s.\"id\" = 3744469",
InputSerialization = {'Parquet': {}},
OutputSerialization = {'JSON': {
"RecordDelimiter": "\n",
}},
)
Run Code Online (Sandbox Code Playgroud)
这是完整的错误:
ClientError: An error occurred (OverMaxParquetBlockSize) when calling SelectObjectContent operation: Parquet file is above the max block size
Run Code Online (Sandbox Code Playgroud)
有没有办法解决这个问题或找到有关此限制的更多信息?
谢谢
使用参数注释@Nonnull并随后使用对其进行检查是否有意义Preconditions.checkNotNull()?
它们之间有什么区别?据我了解,@Nonnull除非您在IDE中进行了说明,否则using 将仅指定合同,而不会进行进一步检查。它是否正确?