Azure / Azure/azure-functions-python-worker

[Bug] Azure Table row key not honoured

オープン
#1,725 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
area:python-functions bug python python-sdk
主要言語
Python
スター
357
フォーク
116
平均マージ
32分
マージ済み PR(30日)
1

説明

### Expected Behavior

I want to read only rows for specific row key and partition key from a table storage in azure.

### Actual Behavior

The function returned all rows for the partition instead of filtering on row key.

### Steps to Reproduce

1. Create a python v2 function in vs code on mac.
2. Specify the table as input binding with the relevant details
3. Print the table data read

### Relevant code being tried

```shell
import logging
import azure.functions as func
import json

app = func.FunctionApp()

@app.table_input(arg_name="messageJSON",
connection="table_conn",
table_name="lastSyncStatus",
row_key="inspector",
partition_key="category")
@app.timer_trigger(schedule="0 */5 * * * *", arg_name="myTimer", run_on_startup=False, use_monitor=False)
def table_in_binding(myTimer: func.TimerRequest, messageJSON):
message = json.loads(messageJSON)
logging.info(message)
```

### Relevant log output

```shell
Executing 'Functions.table_in_binding' (Reason='This function was programmatically called via the host APIs.', Id=33c96dd8-2a8a-4182-af0c-fe5b884e4373)
[2025-07-28T18:44:02.465Z] [{'PartitionKey': 'category', 'RowKey': 'infrastructure', 'last_sync_time': '2025-07-28T18:15:00.004945+00:00', 'pipeline_succeeded': False}, {'PartitionKey': 'category', 'RowKey': 'inspector', 'last_sync_time': '2025-07-28T18:15:00.004945+00:00', 'pipeline_succeeded': True}]
[2025-07-28T18:44:02.476Z] Executed 'Functions.table_in_binding' (Succeeded, Id=33c96dd8-2a8a-4182-af0c-fe5b884e4373, Duration=1025ms)
```

### requirements.txt file

```shell
azure-functions
```

### Where are you facing this problem?

Local - Core Tools

### Function app name

_No response_

### Additional Information

_No response_

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

この issue には、Azure の table_input binding を使用する Python v2 関数と、再現手順およびログが示されています。まず、示されている row_key と partition_key を使って binding を再現し、次に table input がどのように解決されるかを追跡します。binding が要求された行だけを返し、その動作をカバーするリグレッションチェックが追加されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, python
領域
cloud, databases
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。