Skip to content

Commit

Permalink
Merge branch 'feast-dev:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliotNguyen68 authored Mar 23, 2024
2 parents add7f3a + e815562 commit 6cba191
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def pull_latest_from_table_or_query(
FROM (
SELECT {a_field_string},
ROW_NUMBER() OVER({partition_by_join_key_string} ORDER BY {timestamp_desc_string}) AS _feast_row
FROM ({from_expression}) a
FROM {from_expression} a
WHERE a."{timestamp_field}" BETWEEN '{start_date}'::timestamptz AND '{end_date}'::timestamptz
) b
WHERE _feast_row = 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import warnings
from typing import Optional

import psycopg2
Expand Down Expand Up @@ -37,6 +38,11 @@ def __init__(self, config: PostgresRegistryConfig, registry_path: str):
sslcert_path=getattr(config, "sslcert_path", None),
sslrootcert_path=getattr(config, "sslrootcert_path", None),
)
warnings.warn(
"PostgreSQLRegistryStore is deprecated and will be removed in the future releases. Please use SqlRegistry instead.",
DeprecationWarning,
)

self.table_name = config.path
self.cache_ttl_seconds = config.cache_ttl_seconds

Expand Down

0 comments on commit 6cba191

Please sign in to comment.