Skip to content

Commit aad4b77

Browse files
committed
fix bigquery source
Signed-off-by: Danny Chiao <danny@tecton.ai>
1 parent d35fd9a commit aad4b77

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,15 @@ def __init__(
4444
"""
4545
if table is None and table_ref is None and query is None:
4646
raise ValueError('No "table" argument provided.')
47-
if table_ref:
47+
if not table and table_ref:
4848
warnings.warn(
4949
(
5050
"The argument 'table_ref' is being deprecated. Please use 'table' "
5151
"instead. Feast 0.20 and onwards will not support the argument 'table_ref'."
5252
),
5353
DeprecationWarning,
5454
)
55+
table = table_ref
5556
self.bigquery_options = BigQueryOptions(table_ref=table, query=query)
5657

5758
# If no name, use the table_ref as the default name

sdk/python/tests/example_repos/example_feature_repo_1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
)
1111

1212
driver_locations_source = BigQuerySource(
13-
table_ref="feast-oss.public.drivers",
13+
table="feast-oss.public.drivers",
1414
event_timestamp_column="event_timestamp",
1515
created_timestamp_column="created_timestamp",
1616
)

0 commit comments

Comments
 (0)