Skip to content

BigQueryOfflineStoreConfig throws error when billing_project_id is present #4678

Closed

Description

@Prathap-P

Expected Behavior

Should be able to use bigquery as offline with billing_project_id

Current Behavior

Not able to intialize feast with bigquery as offfline, got the following error

Screenshot 2024-10-24 at 10 22 54 AM

Steps to reproduce

Instantiate feast with bigquery as offline and add billing project id.

Specifications

  • Version: 0.40, 0.37
  • Platform: Mac (M1)

Possible Solution

With pydantic 2.9.2 values dict inside field_validator has data atrribute which has all the required details like project_id, billing_project_id, but when going through codebase in sdk/python/feast/infra/offline_stores/bigquery.py at line 107 found that project_id is expected inside values dict

Activity

  1. boumelhaa commented on Nov 27, 2024

    @boumelhaa

    this is a pydantic issue that is faced when moving to pydantic 2.x

    it should be something like this

           def project_id_exists(cls, v, values, **kwargs):
              if v and not values.data.get("project_id"):
                  raise ValueError(
                      "please specify project_id if billing_project_id is specified"
                  )
            return v
  2. stale commented on Apr 26, 2025

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  3. added
    wontfix
    on Apr 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugpriority/p2wontfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions