apache / apache/iceberg-python
Compatible File storage provider that do not support signature with trailer
- 主要语言
- Python
- 星标
- 1.1k
- 派生
- 581
- 平均合并
- 1 天 17 小时
- 30 天内合并 PR
- 78
描述
### Feature Request / Improvement
When use fsspec io-impl, put object to File Storage Provider(FSP) not support
- [Signature calculations for trailing headers](https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-streaming-trailers.html)
- [checking-object-integrity-upload](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity-upload.html)
Put file like snapxxx.avro will not handle by FSP after upload(put object is success), the file some data signature related things are reserved.
When get snapxxx.avro to read and decoder, raise Error, Because the file contains signature information
```python
File "pyiceberg/avro/decoder_fast.pyx", line 150, in pyiceberg.avro.decoder_fast.CythonBinaryDecoder.read_utf8
cpdef str read_utf8(self):
File "pyiceberg/avro/decoder_fast.pyx", line 156, in pyiceberg.avro.decoder_fast.CythonBinaryDecoder.read_utf8
return self.read_bytes().decode("utf-8")
File "pyiceberg/avro/decoder_fast.pyx", line 130, in pyiceberg.avro.decoder_fast.CythonBinaryDecoder.read_bytes
return r[0:length]
SystemError: Negative size passed to PyBytes_FromStringAndSize
```
贡献指南
这个仓库没有索引到贡献指南
调研方向
从 fsspec I/O 实现开始,针对不支持尾部 header 签名的文件存储提供商,复现 snapxxx.avro 文件的上传和下载。检查生成的对象以及 pyiceberg/avro/decoder_fast.pyx 中的失败。完成的标准是,通过此路径上传的对象可以由受影响的提供商在没有保留签名数据的情况下读取和解码。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- backend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 需要澄清
- 新手友好度
- 42/100