@@ -18,29 +18,29 @@ In order to use this offline store, you'll need to run `pip install 'feast[trino
1818{% code title="feature_store.yaml" %}
1919``` yaml
2020project : feature_repo
21- registry : data/registry.db
21+ project_description : This Feast project is a Trino Offline Store demo.
2222provider : local
23+ registry : data/registry.db
2324offline_store :
24- type : feast_trino.trino.TrinoOfflineStore
25- host : localhost
26- port : 8080
27- catalog : memory
28- connector :
29- type : memory
30- user : trino
31- source : feast-trino-offline-store
32- http-scheme : https
33- ssl-verify : false
34- x-trino-extra-credential-header : foo=bar, baz=qux
35-
36- # enables authentication in Trino connections, pick the one you need
37- # if you don't need authentication, you can safely remove the whole auth block
25+ type: trino
26+ host: ${TRINO_HOST}
27+ port: ${TRINO_PORT}
28+ http-scheme: http
29+ ssl-verify: false
30+ catalog: hive
31+ dataset: ${DATASET_NAME}
32+ # Hive connection as example
33+ connector:
34+ type: hive
35+ file_format: parquet
36+ user: trino
37+ # Enables authentication in Trino connections, pick the one you need
3838 auth :
3939 # Basic Auth
4040 type : basic
4141 config :
42- username : foo
43- password : $FOO
42+ username : ${TRINO_USER}
43+ password : ${TRINO_PWD}
4444
4545 # Certificate
4646 type : certificate
@@ -51,7 +51,7 @@ offline_store:
5151 # JWT
5252 type : jwt
5353 config :
54- token : $JWT_TOKEN
54+ token : ${ JWT_TOKEN}
5555
5656 # OAuth2 (no config required)
5757 type : oauth2
@@ -69,7 +69,12 @@ offline_store:
6969 delegate : true
7070 ca_bundle : /path/to/ca/bundle/file
7171online_store :
72- path : data/online_store.db
72+ path: data/online_store.db
73+ # Prevents "Unsupported Hive type: timestamp(3) with time zone" TrinoUserError
74+ coerce_tz_aware : false
75+ entity_key_serialization_version : 3
76+ auth :
77+ type: no_auth
7378```
7479{% endcode %}
7580
0 commit comments