GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: Timestamp formatting and lakehouse-type connector for trino_offl… · Marcus-Rosti/feast@c2ea7e9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • sdk/python/feast/infra/offline_stores/contrib/trino_offline_store
    • connectors
      • upload.py
    • trino.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: sdk/python/feast/infra/offline_stores/contrib/trino_offline_store/connectors/upload.py
+1Lines 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 = """
Collapse file

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

Copy file name to clipboardExpand all lines: sdk/python/feast/infra/offline_stores/contrib/trino_offline_store/trino.py
+7-2Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,11 +424,16 @@ 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,
428+
end_date,
429+
timestamp_field,
430+
quote_fields=False,
431+
cast_style="timestamp",
432+
date_time_separator=" ",
428433
)
429434
query = f"""
430435
SELECT {field_string}
431-
FROM {from_expression}
436+
FROM ( {from_expression} )
432437
WHERE {timestamp_filter}
433438
"""
434439
return TrinoRetrievalJob(

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.