fetch_historical_feature_values: unquoted BigQuery table name fails for project IDs like my-proj-5bb0

Đang mở Phù hợp với người mới
#7,280 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@vanshhh18 đang làm issue này rồi.

Từ ngày 10/11/2026.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
82/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python

Hướng nghiên cứu

Đọc vertexai/resources/preview/feature_store/offline_store.py và kiểm tra _feature_to_data_source, hàm tạo truy vấn nguồn. Kiểm tra các bài kiểm thử gần đó bao quát truy vấn feature lịch sử và tham chiếu bảng; tái hiện lỗi bằng ID dự án BigQuery có dấu gạch nối theo sau là một chữ số. Hoàn tất khi truy vấn được tạo đặt tên bảng đầy đủ trong dấu ngoặc kép và truy vấn point-in-time chạy thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

api: vertex-ai
Environment
  • google-cloud-aiplatform 1.165.1 and 2.7.0
  • vertexai.resources.preview.feature_store.offline_store.fetch_historical_feature_values
Problem

_feature_to_data_source in vertexai/resources/preview/feature_store/offline_store.py builds the feature source query as

f"FROM {fully_qualified_table}"

without backticks. BigQuery cannot parse an unquoted project ID whose segment after a dash starts with a digit, such as my-proj-5bb0, so the point-in-time query fails:

google.api_core.exceptions.BadRequest: 400 Syntax error: Expected ")" but got "bb0"
Steps to reproduce
  1. In a project whose ID has a dash followed by a digit-leading segment (for example my-proj-5bb0), create a FeatureGroup over bq://my-proj-5bb0.dataset.view and register features.
  2. Call offline_store.fetch_historical_feature_values(entity_df=..., features=[...]).
Expected

The query quotes the table reference:

f"FROM `{fully_qualified_table}`"

With that change the query runs and returns the expected point-in-time rows.

Workaround

Call with dry_run=True, add backticks around the table name in the printed query, and run it with bigframes.pandas.read_gbq_query.

Ngôn ngữ chính
Python
Star
914
Fork
475
Merge trung bình
2 ngày 6 giờ
Pull request đã merge (30 ngày)
38

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của googleapis/python-aiplatform

Tất cả issue của googleapis/python-aiplatform

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.