Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: configurable BigQuery offline store export parquet file size #13

Merged
merged 2 commits into from
Nov 8, 2023

Conversation

KarolisKont
Copy link

@KarolisKont KarolisKont commented Nov 8, 2023

Here's the corrected version:

This PR refactors the previous method of specifying the BigQuery export file size through an environment variable. The new implementation utilizes BigQueryOfflineStoreConfig, allowing the configuration of the GCS staging file size directly via the Feast configuration file.

An example of cofig:

...
offline_store:
  ...
  gcs_staging_file_size_mb: 100

@@ -571,27 +573,16 @@ def to_remote_storage(self) -> List[str]:
"offline store when executing `to_remote_storage()`"
)

table = self.to_bigquery()
assert isinstance(self.config.offline_store, BigQueryOfflineStoreConfig)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this for type checking? Why wasn't this needed before?

Copy link
Author

@KarolisKont KarolisKont Nov 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes and getting autocompletion from IDE with field names. It is done the same way in another method.

@KarolisKont KarolisKont merged commit fd2d8a2 into ml_platfrom_v034 Nov 8, 2023
15 checks passed
@KarolisKont KarolisKont deleted the refactor/bq_export_parquet_size branch November 8, 2023 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants