airbytehq / airbytehq/airbyte-api-python-sdk

sync_modes not populated after call to streams.get_stream_properties

未关闭
#110 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
61
派生
27
平均合并
4 分钟
30 天内合并 PR
2

描述

When calling directly the API
```bash
curl --request GET \
--url 'https://api.airbyte.com/v1/streams?sourceId=03604837-98e**********8b8c7e4a&destinationId=d89fd9a*********6d6-85c8-ddc30e7a85ec' \
--header 'accept: application/json' \
--header 'authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cC **************FnxpQVDlmiwxee0PpoSQ'
```

it nicely returns sync_modes info:
```json
[
{
"streamName": "abandoned_checkouts",
"syncModes": [
"full_refresh_append",
"full_refresh_overwrite",
"incremental_append"
],
"defaultCursorField": [
"updated_at"
],
"sour ..."
```
However, when using the python SDK
```python
res_sp = s.streams.get_stream_properties(request=api.GetStreamPropertiesRequest(
source_id=source_id,
))
```
the sync_modes are always returned as `None` for all streams

贡献指南

打开贡献指南

调研方向

首先,将 GET /v1/streams 显示的 REST 响应与使用 GetStreamPropertiesRequest 调用 s.streams.get_stream_properties 的结果进行比较。跟踪 SDK 在哪里映射返回的流属性,并验证每个流都保留了 sync_modes。当 Python SDK 暴露出与 API 响应相同的 sync_modes 值时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
api
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
40/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。