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

fix: enforce bq SchemaField field_type and mode using feature value_type #1019

Merged
merged 11 commits into from
Feb 24, 2022

Conversation

morgandu
Copy link
Contributor

Fixes b/220049963

@morgandu morgandu requested review from a team as code owners February 17, 2022 04:08
@morgandu morgandu requested a review from dandhlee February 17, 2022 04:08
@snippet-bot
Copy link

snippet-bot bot commented Feb 17, 2022

No region tags are edited in this PR.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@morgandu morgandu force-pushed the mor--fix-feature-store-df-bq-schema branch from 4c49705 to 9c95e64 Compare February 17, 2022 04:16
source_format=bigquery.SourceFormat.PARQUET,
parquet_options=parquet_options,
)

job = bigquery_client.load_table_from_dataframe(
Copy link
Contributor

@ivanmkc ivanmkc Feb 23, 2022

Choose a reason for hiding this comment

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

It looks like there's no assertion that the correct args are passed to bq_load_table_from_dataframe_mock. Perhaps add to a bq_load_table_from_dataframe_mock.assert_called_once_with(...) to test_ingest_from_df_using_column and test_ingest_from_df_using_datetime.

Copy link
Contributor

@ivanmkc ivanmkc left a comment

Choose a reason for hiding this comment

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

LGTM

@morgandu morgandu merged commit 095bea2 into googleapis:main Feb 24, 2022
@morgandu morgandu deleted the mor--fix-feature-store-df-bq-schema branch February 24, 2022 05:14
@morgandu morgandu self-assigned this Feb 28, 2022
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.

2 participants