Skip to content

Commit 7db33e0

Browse files
committed
docs(bigquery): update docstring to reflect both table and query support
The validation only enforces at least one of table/query, not exactly one. Update the docstring to document the supported behavior when both are set. Signed-off-by: Jonathan Wrede <wrede.jonathan00@gmail.com>
1 parent cb5b03b commit 7db33e0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

sdk/python/feast/infra/offline_stores/bigquery_source.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ def __init__(
4747
case the table must be specified.
4848
timestamp_field (optional): Event timestamp field used for point in time
4949
joins of feature values.
50-
table (optional): BigQuery table where the features are stored. Exactly one of 'table'
51-
and 'query' must be specified.
52-
table (optional): The BigQuery table where features can be found.
50+
table (optional): BigQuery table where the features are stored. At least one of 'table'
51+
and 'query' must be specified. When both are set, 'query' is used for reads and
52+
'table' is used as the write destination.
5353
created_timestamp_column (optional): Timestamp column when row was created, used for deduplicating rows.
5454
field_mapping (optional): A dictionary mapping of column names in this data source to feature names in a feature table
5555
or view. Only used for feature columns, not entities or timestamp columns.
5656
date_partition_column (optional): Timestamp column used for partitioning.
57-
query (optional): The query to be executed to obtain the features. Exactly one of 'table'
58-
and 'query' must be specified.
57+
query (optional): The query to be executed to obtain the features. When both 'table'
58+
and 'query' are provided, 'query' takes priority for reads.
5959
description (optional): A human-readable description.
6060
tags (optional): A dictionary of key-value pairs to store arbitrary metadata.
6161
owner (optional): The owner of the bigquery source, typically the email of the primary

0 commit comments

Comments
 (0)