Skip to content

Commit 818a0cd

Browse files
committed
fix | trino_offline_store: Timestamp formatting and lakehouse-type connector
1 parent 11122ce commit 818a0cd

File tree

2 files changed

+3
-2
lines changed
  • sdk/python/feast/infra/offline_stores/contrib/trino_offline_store

2 files changed

+3
-2
lines changed

sdk/python/feast/infra/offline_stores/contrib/trino_offline_store/connectors/upload.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"oracle",
5757
"redshift",
5858
"memsql",
59+
"lakehouse",
5960
}
6061

6162
CREATE_SCHEMA_QUERY_TEMPLATE = """

sdk/python/feast/infra/offline_stores/contrib/trino_offline_store/trino.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,11 +424,11 @@ def pull_all_from_table_or_query(
424424
)
425425

426426
timestamp_filter = get_timestamp_filter_sql(
427-
start_date, end_date, timestamp_field, quote_fields=False
427+
start_date, end_date, timestamp_field, quote_fields=False, cast_style='timestamp', date_time_separator=' '
428428
)
429429
query = f"""
430430
SELECT {field_string}
431-
FROM {from_expression}
431+
FROM ( {from_expression} )
432432
WHERE {timestamp_filter}
433433
"""
434434
return TrinoRetrievalJob(

0 commit comments

Comments
 (0)