[Bug]: BigQueryVectorSearchParameters.format_query generates invalid SQL for options and duplicate embedding_column
メンテナーはふだん 2 日以内に返信
@arijeetmukherjee3108-droid がすでに取り組んでいます。
2026年11月25日 から。
- #41690 @arijeetmukherjee3108-droid による — オープン
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 18/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
調査の方向性
Start with format_query in sdks/python/apache_beam/ml/rag/enrichment/bigquery_vector_search.py, checking how options is interpolated and how the base subquery selects embedding_column alongside columns. Run the reproduction from the issue to see the generated SQL. Done means options is emitted as a single-quoted JSON string and embedding_column is not duplicated. Pull request #41690 already targets this, so review or coordinate with it rather than starting a parallel fix.
索引モデルが issue の本文から書いたものです。
説明
What happened?
BigQueryVectorSearchParameters.format_query() in sdks/python/apache_beam/ml/rag/enrichment/bigquery_vector_search.py generates invalid BigQuery SQL in two cases:
- Invalid
optionsclause: BigQuery'sVECTOR_SEARCHexpectsoptionsto be a single-quoted JSON string literal (e.g.options => '{"use_brute_force": true}'). Currently,format_query()interpolates the Pythondictdirectly (f", options => {self.options}"), producing invalid SQL such as:, options => {'use_brute_force': True, 'fraction_lists_to_search': 0.01} - Duplicate
embedding_columnin subquery: The base table subquery unconditionally selects(SELECT {columns_str}, {self.embedding_column} ...). Ifembedding_columnis also included incolumns, BigQuery receives a duplicate column name (e.g.SELECT content, embedding, embedding).
Reproduction
from apache_beam.ml.rag.enrichment.bigquery_vector_search import BigQueryVectorSearchParameters
from apache_beam.ml.rag.types import Content, EmbeddableItem, Embedding
params = BigQueryVectorSearchParameters(
project='my-proj',
table_name='my-proj.ds.tbl',
embedding_column='embedding',
columns=['content', 'embedding'],
neighbor_count=5,
options={'use_brute_force': True, 'fraction_lists_to_search': 0.01},
)
item = EmbeddableItem(
id='1',
content=Content(text='hi'),
embedding=Embedding(dense_embedding=[0.1, 0.2]),
)
print(params.format_query([item]))
Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
Issue Components
- Component: Python SDK
- Component: Java SDK
- Component: Go SDK
- Component: Typescript SDK
- Component: IO connector
- Component: Beam YAML
- Component: Beam examples
- Component: Beam playground
- Component: Beam katas
- Component: Website
- Component: Infrastructure
- Component: Spark Runner
- Component: Flink Runner
- Component: Prism Runner
- Component: Hazelcast Jet Runner
- Component: Google Cloud Dataflow Runner
- 主要言語
- Java
- スター
- 8.7k
- フォーク
- 4.8k
- 平均マージ
- 3日 16時間
- マージ済み PR(30日)
- 445
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/beam のほかの issue
-
awaiting triage java new feature P2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
[Bug]: [Python] BigTableEnrichmentHandler coerces None lookup keys to literal b'None' and formats blank key name on KeyError対応中かも @shikhabhadoria が 6 日前に担当しました。 オープンio P2 python
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
apache/beam#41346 · コメント 4 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
Release notes links wrong対応中かも @schizophrenicmaniac が 20 日前に担当しました。 オープンbug P3
難易度 1/5 1時間未満 初心者へのやさしさ 67/100
apache/beam#41197 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
apache/beam#39624 · リアクション 2 件 ·
メンテナーはふだん 2 日以内に返信
-
[Bug]: PubsubIO used in batch incorrect batch cutoff size対応中かも @1fanwang が 98 日前に担当しました。 オープンbug io P3 pinned pubsub
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/beam#28011 · コメント 4 件 ·
メンテナーはふだん 2 日以内に返信
似ている issue
-
effort/l priority/p1 risk/high triage/core
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
iflytek/skillhub#1188 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
testng-team/testng#3675 ·
メンテナーはふだん 1 日以内に返信
-
design
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
OpenLiberty/liberty-tools-intellij#1869 ·
メンテナーはふだん 1 日以内に返信
-
`ovsx verify` fails for a version older than the 100 newest of an extension対応中かも @trivikr が今日担当しました。 オープンcli
難易度 2/5 1〜3時間 初心者へのやさしさ 81/100
eclipse-openvsx/openvsx#2482 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信