From 5e45228a406e6ee7f82e41cab7f734730ff2e73f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Kri=C5=BEani=C4=87?= <38288854+ikrizanic@users.noreply.github.com> Date: Thu, 21 Jul 2022 07:14:03 +0200 Subject: [PATCH] fix: Add dummy alias to pull_all_from_table_or_query (#2956) * Add dummy alias to pull_all_from_table_or_query Signed-off-by: Ivan Krizanic * Fix lint error Signed-off-by: Ivan Krizanic --- .../offline_stores/contrib/postgres_offline_store/postgres.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/feast/infra/offline_stores/contrib/postgres_offline_store/postgres.py b/sdk/python/feast/infra/offline_stores/contrib/postgres_offline_store/postgres.py index 415a46dde7..28944df72e 100644 --- a/sdk/python/feast/infra/offline_stores/contrib/postgres_offline_store/postgres.py +++ b/sdk/python/feast/infra/offline_stores/contrib/postgres_offline_store/postgres.py @@ -214,7 +214,7 @@ def pull_all_from_table_or_query( query = f""" SELECT {field_string} - FROM {from_expression} + FROM {from_expression} AS paftoq_alias WHERE "{timestamp_field}" BETWEEN '{start_date}'::timestamptz AND '{end_date}'::timestamptz """