FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: Timestamp formatting and lakehouse-type connector for trino_offline_store. by soliverr · Pull Request #5846 · feast-dev/feast · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (2) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
      • upload.py
    • trino.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"oracle",
"redshift",
"memsql",
"lakehouse",
}

CREATE_SCHEMA_QUERY_TEMPLATE = """
Expand Down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -424,11 +424,16 @@ def pull_all_from_table_or_query(
)

timestamp_filter = get_timestamp_filter_sql(
start_date, end_date, timestamp_field, quote_fields=False
start_date,
end_date,
timestamp_field,
quote_fields=False,
cast_style="timestamp",
date_time_separator=" ",
)
query = f"""
SELECT {field_string}
FROM {from_expression}
FROM ( {from_expression} )
WHERE {timestamp_filter}
"""
return TrinoRetrievalJob(
Expand Down
Loading

Back | FazBrowse Home | New Git URL